Fix compilation: QChar(char) is "from ASCII"
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 26 Oct 2012 20:12:03 +0000 (13:12 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 27 Oct 2012 05:37:52 +0000 (07:37 +0200)
This fixes the build if QT_NO_CAST_FROM_ASCII is defined.

Change-Id: I0273794a83b0adaa0c15a9910cbcc9ea5d48ef7a
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
src/corelib/io/qstandardpaths.cpp

index 91e343b..4d7e359 100644 (file)
@@ -272,7 +272,7 @@ QString QStandardPaths::findExecutable(const QString &executableName, const QStr
         searchPaths.reserve(rawPaths.size());
         foreach (const QString &rawPath, rawPaths) {
             QString cleanPath = QDir::cleanPath(rawPath);
-            if (cleanPath.size() > 1 && cleanPath.endsWith('/'))
+            if (cleanPath.size() > 1 && cleanPath.endsWith(QLatin1Char('/')))
                 cleanPath.truncate(cleanPath.size() - 1);
             searchPaths.push_back(cleanPath);
         }