diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2012-11-26 21:24:16 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@digia.com> | 2012-12-20 14:16:56 +0100 |
commit | a24c1407a38a6e33385bd1b415e459fc834010e9 (patch) | |
tree | 082d668e4e8be9f9c691a639aa251033657eb66e /src/plugins/qmlprojectmanager/qmlprojectnodes.cpp | |
parent | b562f8175a4f5d69f980ce9e23e52b9d9d68fc69 (diff) | |
download | qt-creator-a24c1407a38a6e33385bd1b415e459fc834010e9.tar.gz |
QmlProjectManager: Compile with QT_NO_CAST_FROM_ASCII
Change-Id: Icac2d84abc001c963d78aa9e95911110463b4b04
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlprojectnodes.cpp')
-rw-r--r-- | src/plugins/qmlprojectmanager/qmlprojectnodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp b/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp index 0cbc7be4ef..063234987d 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp @@ -103,7 +103,7 @@ void QmlProjectNode::refresh() } else { absoluteFilePath = m_project->projectDir().absoluteFilePath(fileInfo.filePath()); relativeDirectory = fileInfo.path(); - if (relativeDirectory == ".") + if (relativeDirectory == QLatin1String(".")) relativeDirectory.clear(); } @@ -147,7 +147,7 @@ ProjectExplorer::FolderNode *QmlProjectNode::findOrCreateFolderByName(const QStr else if (FolderNode *folder = m_folderByName.value(folderName)) return folder; - FolderNode *folder = new FolderNode(baseDir + '/' + folderName); + FolderNode *folder = new FolderNode(baseDir + QLatin1Char('/') + folderName); folder->setDisplayName(component); m_folderByName.insert(folderName, folder); |