forked from qt-creator/qt-creator
Replace QString::fromLocal8Bit("") calls
Calling fromLocal8Bit() for literals is wrong, since that depends ont the user's environment. We use latin1 strings exclusively in Qt. Change-Id: I0cd0986787ea630425773672d3a892fbd0f0a77a Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -248,7 +248,7 @@ void tst_PluginSpec::loadLibrary()
|
||||
QVERIFY(spec->resolveDependencies(QList<PluginSpec *>()));
|
||||
QVERIFY2(spec->loadLibrary(), qPrintable(spec->errorString));
|
||||
QVERIFY(spec->plugin != 0);
|
||||
QVERIFY(QString::fromLocal8Bit(spec->plugin->metaObject()->className()) == QString::fromLocal8Bit("MyPlugin::MyPluginImpl"));
|
||||
QVERIFY(QLatin1String(spec->plugin->metaObject()->className()) == QLatin1String("MyPlugin::MyPluginImpl"));
|
||||
QCOMPARE(spec->state, PluginSpec::Loaded);
|
||||
QVERIFY(!spec->hasError);
|
||||
QCOMPARE(spec->plugin->pluginSpec(), ps);
|
||||
|
||||
Reference in New Issue
Block a user