From 24a7409d4af92ec6679bb2f7bf9a16120087751f Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sat, 29 Feb 2020 05:55:20 -0500 Subject: [PATCH] Avoid a copy. --- src/BiblioInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp index 50d8abfd22..2161bc64fc 100644 --- a/src/BiblioInfo.cpp +++ b/src/BiblioInfo.cpp @@ -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 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; -- 2.39.5