This commit is contained in:
Roberto Raggi
2009-12-02 12:45:28 +01:00
parent f3bebd7f1b
commit 75a7abb8c5
2 changed files with 13 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ public:
TranslationUnit::ParseMode mode,
bool blockErrors = false)
{
StringLiteral *fileId = control.findOrInsertStringLiteral("<stdin>");
const StringLiteral *fileId = control.findOrInsertStringLiteral("<stdin>");
TranslationUnit *unit = new TranslationUnit(&control, fileId);
unit->setObjCEnabled(true);
unit->setSource(source.constData(), source.length());