Use new QStringList::contains(QL1S)
... to reduce text size by replacing QStringLiteral with QL1S. Change-Id: I8166282d915f081ba816989039451466ec29e208 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
1dc4c3817b
commit
bf9a1cf939
@ -122,8 +122,8 @@ void QFactoryLoader::update()
|
||||
//
|
||||
// ### FIXME find a proper solution
|
||||
//
|
||||
const bool isLoadingDebugAndReleaseCocoa = plugins.contains(QStringLiteral("libqcocoa_debug.dylib"))
|
||||
&& plugins.contains(QStringLiteral("libqcocoa.dylib"));
|
||||
const bool isLoadingDebugAndReleaseCocoa = plugins.contains(QLatin1String("libqcocoa_debug.dylib"))
|
||||
&& plugins.contains(QLatin1String("libqcocoa.dylib"));
|
||||
#endif
|
||||
for (int j = 0; j < plugins.count(); ++j) {
|
||||
QString fileName = QDir::cleanPath(path + QLatin1Char('/') + plugins.at(j));
|
||||
|
@ -118,7 +118,7 @@ QString QOfonoManagerInterface::currentModem()
|
||||
for (const QString &modem : modems) {
|
||||
QOfonoModemInterface device(modem);
|
||||
if (device.isPowered() && device.isOnline()
|
||||
&& device.interfaces().contains(QStringLiteral("org.ofono.NetworkRegistration")))
|
||||
&& device.interfaces().contains(QLatin1String("org.ofono.NetworkRegistration")))
|
||||
return modem;
|
||||
}
|
||||
return QString();
|
||||
|
@ -395,9 +395,9 @@ int runMoc(int argc, char **argv)
|
||||
pp.macros.remove(macro);
|
||||
}
|
||||
const QStringList noNotesCompatValues = parser.values(noNotesWarningsCompatOption);
|
||||
if (parser.isSet(noNotesOption) || noNotesCompatValues.contains(QStringLiteral("n")))
|
||||
if (parser.isSet(noNotesOption) || noNotesCompatValues.contains(QLatin1String("n")))
|
||||
moc.displayNotes = false;
|
||||
if (parser.isSet(noWarningsOption) || noNotesCompatValues.contains(QStringLiteral("w")))
|
||||
if (parser.isSet(noWarningsOption) || noNotesCompatValues.contains(QLatin1String("w")))
|
||||
moc.displayWarnings = moc.displayNotes = false;
|
||||
|
||||
if (autoInclude) {
|
||||
|
Loading…
Reference in New Issue
Block a user