aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/productinstaller.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2016-11-07 15:57:08 +0100
committerKai Koehne <kai.koehne@qt.io>2016-11-08 19:17:15 +0000
commit9bf3196033c81099c7d74d4dfddf2bce01cbaff5 (patch)
treef4a17a179fb06f858c2e8b8cefe2fd10dccdd39e /src/lib/corelib/buildgraph/productinstaller.cpp
parent9596e734b3f251a8ab3b74910ba0614fffe72f8f (diff)
Do not use fromLocal8Bit() for string literals
The current locale encoding does have nothing to do with string literals. Use fromLatin1(), which tends to be the fastest for ASCII. Change-Id: I9f1ff603f26812a63e5b23a413ba240c47d5ac23 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/productinstaller.cpp')
-rw-r--r--src/lib/corelib/buildgraph/productinstaller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/productinstaller.cpp b/src/lib/corelib/buildgraph/productinstaller.cpp
index 9f9ba2c44..b59ad1c4c 100644
--- a/src/lib/corelib/buildgraph/productinstaller.cpp
+++ b/src/lib/corelib/buildgraph/productinstaller.cpp
@@ -166,7 +166,7 @@ void ProductInstaller::removeInstallRoot()
m_logger.qbsInfo() << Tr::tr("Would remove install root '%1'.").arg(nativeInstallRoot);
return;
}
- m_logger.qbsDebug() << QString::fromLocal8Bit("Removing install root '%1'.")
+ m_logger.qbsDebug() << QString::fromLatin1("Removing install root '%1'.")
.arg(nativeInstallRoot);
QString errorMessage;
@@ -195,7 +195,7 @@ void ProductInstaller::copyFile(const Artifact *artifact)
.arg(nativeFilePath, nativeTargetDir);
return;
}
- m_logger.qbsDebug() << QString::fromLocal8Bit("Copying file '%1' into target directory '%2'.")
+ m_logger.qbsDebug() << QString::fromLatin1("Copying file '%1' into target directory '%2'.")
.arg(nativeFilePath, nativeTargetDir);
if (!QDir::root().mkpath(targetDir)) {