]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiRef.cpp
Fix readability
[lyx.git] / src / frontends / qt / GuiRef.cpp
index 5fb317d64117f3301df5f91f3ead3fe82186ba97..6a2446a5a669070a6bfafa63f2e485ac1ef94cb8 100644 (file)
@@ -452,12 +452,10 @@ void GuiRef::redoRefs()
        QStringList refsCategories;
        // 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 & theref : 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>(theref));
+               refsNames.append({lab, toqstr(get<1>(theref)), toqstr(get<2>(theref))});
                if (groupCB->isChecked()) {
                        if (lab.contains(":")) {
                                QString const pref = lab.split(':')[0];