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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ static QString updateVariable(const QString &varStr, const QString &varsToAdd,
|
||||
var.remove(s);
|
||||
|
||||
QStringList sl = QStringList::fromSet(var);
|
||||
return sl.join(QLatin1Char(' '));
|
||||
return sl.join(QLatin1String(" "));
|
||||
}
|
||||
|
||||
bool ProjectFileConverter::convertFile(Core::GeneratedFile &file, QString &errorMessage)
|
||||
|
||||
Reference in New Issue
Block a user