]> git.lyx.org Git - lyx.git/commitdiff
According to André, QLatin1String is cheaper.
authorEnrico Forestieri <forenr@lyx.org>
Mon, 1 Feb 2010 01:07:32 +0000 (01:07 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 1 Feb 2010 01:07:32 +0000 (01:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33306 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/LengthCombo.cpp

index a21bc4da3668bae8cb52d7900d45b614f671e89f..8e57af1ca6958cbf5ac6a1ac32e440e252bc7016 100644 (file)
@@ -27,7 +27,7 @@ LengthCombo::LengthCombo(QWidget * parent)
        for (int i = 0; i < lyx::num_units; i++) {
                // mu does not make sense usually
                // so it must be added manually, if needed
-               if (QString(lyx::unit_name[i]) == "mu")
+               if (QLatin1String(lyx::unit_name[i]) == "mu")
                        continue;
                QComboBox::addItem(lyx::qt_(lyx::unit_name_gui[i]),
                        lyx::toqstr(lyx::unit_name[i]));