forked from qt-creator/qt-creator
fix build against qt4
Change-Id: I1884f6e61dcae95817da10f0ead67f2df99b4ec7 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Eike Ziller
parent
ef298df4b2
commit
44dd2b6bdf
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user