[LyX/master] Polish

Richard Kimberly Heck rikiheck at lyx.org
Fri Feb 28 05:45:07 UTC 2020


commit 81597aabdb56b9d14891d60b0589b3f304b47f8a
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Fri Feb 28 00:39:50 2020 -0500

    Polish
---
 src/Buffer.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index a300b2d..e7860af 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -3408,7 +3408,7 @@ vector<pair<docstring, string>> const Buffer::prepareBibFilePaths(OutputParams c
 			enc = params().bibFileEncoding(utf8input);
 
 		bool recorded = false;
-		for (pair<docstring, string> pe : res) {
+		for (auto const & pe : res) {
 			if (pe.first == path) {
 				recorded = true;
 				break;
@@ -3996,7 +3996,7 @@ void Buffer::setInsetLabel(docstring const & label, InsetLabel const * il,
 InsetLabel const * Buffer::insetLabel(docstring const & label,
 				      bool const active) const
 {
-	for (auto & rc : masterBuffer()->d->label_cache_) {
+	for (auto const & rc : masterBuffer()->d->label_cache_) {
 		if (rc.label == label && (rc.active || !active))
 			return rc.inset;
 	}


More information about the lyx-cvs mailing list