From: Enrico Forestieri Date: Mon, 1 Feb 2010 01:07:32 +0000 (+0000) Subject: According to André, QLatin1String is cheaper. X-Git-Tag: 2.0.0~4160 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a7c9c14b23ad6c8feefec49208cee769d11f6d36;p=lyx.git According to André, QLatin1String is cheaper. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33306 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/LengthCombo.cpp b/src/frontends/qt4/LengthCombo.cpp index a21bc4da36..8e57af1ca6 100644 --- a/src/frontends/qt4/LengthCombo.cpp +++ b/src/frontends/qt4/LengthCombo.cpp @@ -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]));