diff --git a/src/plugins/debugger/registerpostmortemaction.cpp b/src/plugins/debugger/registerpostmortemaction.cpp index bc1574574b2..daa93e0b938 100644 --- a/src/plugins/debugger/registerpostmortemaction.cpp +++ b/src/plugins/debugger/registerpostmortemaction.cpp @@ -53,7 +53,7 @@ void RegisterPostMortemAction::registerNow(const QVariant &value) { const bool boolValue = value.toBool(); const QString debuggerExe = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + QLatin1Char('/') - + debuggerApplicationFileC + QLatin1String(".exe")); + + QLatin1String(debuggerApplicationFileC) + QLatin1String(".exe")); const ushort *debuggerWString = debuggerExe.utf16(); CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); diff --git a/src/shared/registryaccess/registryaccess.cpp b/src/shared/registryaccess/registryaccess.cpp index 3d67bf4caa3..e0131ab263e 100644 --- a/src/shared/registryaccess/registryaccess.cpp +++ b/src/shared/registryaccess/registryaccess.cpp @@ -114,7 +114,7 @@ bool openRegistryKey(HKEY category, // HKEY_LOCAL_MACHINE, etc. if (rc != ERROR_SUCCESS) { *errorMessage = msgFunctionFailed("RegOpenKeyEx", rc); if (readWrite) - *errorMessage += "You need administrator privileges to edit the registry."; + *errorMessage += QLatin1String("You need administrator privileges to edit the registry."); return false; } return true; @@ -128,7 +128,7 @@ QString debuggerCall(const QString &additionalOption) QString rc; QTextStream str(&rc); str << '"' << QDir::toNativeSeparators(QApplication::applicationDirPath() + QLatin1Char('/') - + debuggerApplicationFileC + QLatin1String(".exe")) << '"'; + + QLatin1String(debuggerApplicationFileC) + QLatin1String(".exe")) << '"'; if (!additionalOption.isEmpty()) str << ' ' << additionalOption; str << " %ld %ld";