From dbba0ff8d7456de3d8e7cc2796c48fcbc700acf1 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Mon, 15 Jun 2009 15:03:41 +0200 Subject: Removed the filename literals. --- src/libs/cplusplus/CppDocument.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libs/cplusplus') 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); -- cgit v1.2.1