Avoid a copy.

This commit is contained in:
Richard Kimberly Heck 2020-02-29 05:55:20 -05:00
parent 6803fb399b
commit 4a81983edd

View File

@ -1449,7 +1449,7 @@ void BiblioInfo::collectCitedEntries(Buffer const & buf)
// FIXME We may want to collect these differently, in the first case,
// so that we might have them in order of appearance.
set<docstring> citekeys;
Toc const toc = *buf.tocBackend().toc("citation");
Toc const & toc = *buf.tocBackend().toc("citation");
for (auto const & t : toc) {
if (t.str().empty())
continue;