forked from qt-creator/qt-creator
Cpp{Tools,Editor}: Expect UTF-8 encoded literals
Change-Id: I9843c4163aad3fa3f1bfa33060c76328fc2dc25a Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -784,7 +784,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 QString::fromLatin1(identifier->chars(), identifier->size());
|
||||
return QString::fromUtf8(identifier->chars(), identifier->size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user