Removed the filename literals.

This commit is contained in:
Roberto Raggi
2009-06-15 15:03:41 +02:00
parent 1754aefdb1
commit dbba0ff8d7
4 changed files with 4 additions and 36 deletions

View File

@@ -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);