fix build against qt4

Change-Id: I1884f6e61dcae95817da10f0ead67f2df99b4ec7
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Oswald Buddenhagen
2013-10-02 12:45:00 +02:00
committed by Eike Ziller
parent ef298df4b2
commit 44dd2b6bdf
2 changed files with 2 additions and 2 deletions

View File

@@ -783,7 +783,7 @@ QString nameOfFirstDeclaration(const Document::Ptr &doc)
if (CPlusPlus::Declaration *decl = s->asDeclaration()) {
if (const CPlusPlus::Name *name = decl->name()) {
if (const CPlusPlus::Identifier *identifier = name->identifier())
return QLatin1String(identifier->chars(), identifier->size());
return QString::fromLatin1(identifier->chars(), identifier->size());
}
}
}