]> git.lyx.org Git - features.git/commitdiff
Fixup c49cd699: QString::toStdString is not always available
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 28 Dec 2016 21:44:40 +0000 (22:44 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 28 Dec 2016 21:44:40 +0000 (22:44 +0100)
This method requires STL support in Qt. Fortunately, it is not needed
here.

src/frontends/qt4/GuiDelimiter.cpp

index 104cb761bd62a9f833ea5ff26eee991c926eff62..0d7ad5d219aff74912db2f268a47c1c2aa257d62 100644 (file)
@@ -432,9 +432,9 @@ void GuiDelimiter::on_swapPB_clicked()
                QChar(nrms.fontcode) : toqstr(docstring(1, nrms.unicode)));
 
        // Handle unencoded "symbol" of "(None)".
-       if (lqs.toStdString() == "?")
+       if (lqs == "?")
                lqs = qt_("(None)");
-       if(rqs.toStdString() == "?")
+       if(rqs == "?")
                rqs = qt_("(None)");
 
        // Locate matching QListWidgetItem.