[LyX/master] Polish
Richard Kimberly Heck
rikiheck at lyx.org
Fri Jul 28 20:23:39 UTC 2023
commit 1ea8b272a0bd6269bce46bdbcdb44e2bc748085b
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date: Fri Jul 28 17:12:13 2023 -0400
Polish
---
src/frontends/qt/GuiRef.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/frontends/qt/GuiRef.cpp b/src/frontends/qt/GuiRef.cpp
index 5fb317d..fbf6824 100644
--- a/src/frontends/qt/GuiRef.cpp
+++ b/src/frontends/qt/GuiRef.cpp
@@ -453,11 +453,11 @@ void GuiRef::redoRefs()
// Do we have a prefix-less label at all?
bool noprefix = false;
vector<std::tuple<docstring, docstring,docstring>>::const_iterator iter;
- for (iter = refs_.begin(); iter != refs_.end(); ++iter) {
+ for (auto const & ref : refs_) {
// first: plain label name, second: gui name, third: pretty name
- QString const lab = toqstr(std::get<0>(*iter));
- refsNames.append({lab, toqstr(std::get<1>(*iter)),
- toqstr(std::get<2>(*iter))});
+ QString const lab = toqstr(get<0>(ref));
+ refsNames.append({lab, toqstr(get<1>(ref)),
+ toqstr(get<2>(*iter))});
if (groupCB->isChecked()) {
if (lab.contains(":")) {
QString const pref = lab.split(':')[0];
More information about the lyx-cvs
mailing list