summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2010-06-02 09:07:48 (GMT)
committerLars Knoll <lars.knoll@nokia.com>2010-06-09 20:21:27 (GMT)
commita1f7df67056c24b8b23393401953859f6e59417e (patch)
tree5e0739812760728927a611508ee6a1478f1b5331 /src
parentd378c200631df4be22e5c7f1b5b7365fcae8286c (diff)
downloadQt-a1f7df67056c24b8b23393401953859f6e59417e.zip
Qt-a1f7df67056c24b8b23393401953859f6e59417e.tar.gz
Qt-a1f7df67056c24b8b23393401953859f6e59417e.tar.bz2
small optimisation
Don't use fromLocal8Bit() when comparing an ascii string to a QString, use QLatin1String.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qdeclarativeimport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativeimport.cpp b/src/declarative/qml/qdeclarativeimport.cpp
index c658a31..a2e3831 100644
--- a/src/declarative/qml/qdeclarativeimport.cpp
+++ b/src/declarative/qml/qdeclarativeimport.cpp
@@ -823,7 +823,7 @@ void QDeclarativeImportDatabase::addPluginPath(const QString& path)
qDebug() << "QDeclarativeImportDatabase::addPluginPath" << path;
QUrl url = QUrl(path);
- if (url.isRelative() || url.scheme() == QString::fromLocal8Bit("file")) {
+ if (url.isRelative() || url.scheme() == QLatin1String("file")) {
QDir dir = QDir(path);
filePluginPath.prepend(dir.canonicalPath());
} else {
@@ -842,7 +842,7 @@ void QDeclarativeImportDatabase::addImportPath(const QString& path)
QUrl url = QUrl(path);
QString cPath;
- if (url.isRelative() || url.scheme() == QString::fromLocal8Bit("file")) {
+ if (url.isRelative() || url.scheme() == QLatin1String("file")) {
QDir dir = QDir(path);
cPath = dir.canonicalPath();
} else {