According to André, QLatin1String is cheaper.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33307 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-02-01 01:14:00 +00:00
parent 7d0a1269af
commit c47af690de

View File

@ -129,7 +129,7 @@ void LengthCombo::reset()
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]));