mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Avoid a copy.
This commit is contained in:
parent
6803fb399b
commit
4a81983edd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user