summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-06-15 15:03:41 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2009-06-15 15:39:20 +0200
commitdbba0ff8d7456de3d8e7cc2796c48fcbc700acf1 (patch)
treed0724a1110420c55e9674bec08bbf3ade8ece6f1 /src/libs/cplusplus
parent1754aefdb165c64ae0751864c58f02d0c24cd664 (diff)
downloadqt-creator-dbba0ff8d7456de3d8e7cc2796c48fcbc700acf1.tar.gz
Removed the filename literals.
Diffstat (limited to 'src/libs/cplusplus')
-rw-r--r--src/libs/cplusplus/CppDocument.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp
index 1d9cafc52a..540f386d53 100644
--- a/src/libs/cplusplus/CppDocument.cpp
+++ b/src/libs/cplusplus/CppDocument.cpp
@@ -110,8 +110,8 @@ Document::Document(const QString &fileName)
_control->setDiagnosticClient(new DocumentDiagnosticClient(this, &_diagnosticMessages));
const QByteArray localFileName = fileName.toUtf8();
- StringLiteral *fileId = _control->findOrInsertFileName(localFileName.constData(),
- localFileName.size());
+ StringLiteral *fileId = _control->findOrInsertStringLiteral(localFileName.constData(),
+ localFileName.size());
_translationUnit = new TranslationUnit(_control, fileId);
_translationUnit->setQtMocRunEnabled(true);
_translationUnit->setObjCEnabled(true);