From: Jean-Marc Lasgouttes Date: Wed, 28 Dec 2016 21:44:40 +0000 (+0100) Subject: Fixup c49cd699: QString::toStdString is not always available X-Git-Tag: 2.3.0alpha1~563 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=eeb6e8333c5d4207a22a23f09e71b8334bdf7532;p=features.git Fixup c49cd699: QString::toStdString is not always available This method requires STL support in Qt. Fortunately, it is not needed here. --- diff --git a/src/frontends/qt4/GuiDelimiter.cpp b/src/frontends/qt4/GuiDelimiter.cpp index 104cb761bd..0d7ad5d219 100644 --- a/src/frontends/qt4/GuiDelimiter.cpp +++ b/src/frontends/qt4/GuiDelimiter.cpp @@ -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.