]> git.lyx.org Git - features.git/commitdiff
C++11 compilation fix
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 6 Dec 2022 16:12:45 +0000 (17:12 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 6 Dec 2022 16:12:45 +0000 (17:12 +0100)
src/frontends/qt/GuiRef.cpp

index a07b73537887d3759bcae654e5ab850be7e214a6..9b9144377a244428820f1d6b64fb57faff5572cf 100644 (file)
@@ -458,7 +458,7 @@ void GuiRef::redoRefs()
        for (iter = refs_.begin(); iter != refs_.end(); ++iter) {
                // first: plain label name, second: gui name
                QString const lab = toqstr((*iter).first);
-               refsNames.append(QPair(lab, toqstr((*iter).second)));
+               refsNames.append({lab, toqstr((*iter).second)});
                if (groupCB->isChecked()) {
                        if (lab.contains(":")) {
                                QString const pref = lab.split(':')[0];