Fixed compile errors when using QT_USE_FAST_CONCATENATION and QT_USE_FAST_OPERATOR_PLUS to compile kdelibs...

svn path=/trunk/KDE/kdelibs/; revision=1194330
This commit is contained in:
Dawit Alemayehu 2010-11-08 18:14:17 +00:00
parent 30799cc1be
commit 086599b47a
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ void DataContainerPrivate::store()
QByteArray b;
QDataStream ds(&b, QIODevice::WriteOnly);
ds << it.value();
op.writeEntry("key", "base64-" + it.key());
op.writeEntry("key", QString(QLatin1String("base64-") + it.key()));
op.writeEntry("data", b.toBase64());
}
++it;

View File

@ -74,7 +74,7 @@ void DeclarativeWidgetPrivate::errorPrint()
if(component->isError()){
QList<QDeclarativeError> errors = component->errors();
foreach (const QDeclarativeError &error, errors) {
errorStr += (error.line()>0?QString::number(error.line()) + ": ":"")
errorStr += (error.line()>0?QString(QString::number(error.line()) + QLatin1String(": ")):QLatin1String(""))
+ error.description() + '\n';
}
}