According to André, QLatin1String is cheaper.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33306 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-02-01 01:07:32 +00:00
parent 10b3f73e19
commit a7c9c14b23

View 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]));