kdecore: correct kError() usage in KConfigGroup::writeEntry()

there used to be kError() function that had a boolean as argument, now
there is only one taking integer (debug area code)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-22 23:19:11 +03:00
parent be9020b3e4
commit c2d6368ce1

View file

@ -888,9 +888,10 @@ void KConfigGroup::writeEntry( const char* key, const QVariant &value,
data = value.toString().toUtf8();
break;
case QVariant::List:
kError(!value.canConvert(QVariant::StringList))
<< "not all types in \"" << key << "\" can convert to QString,"
if (!value.canConvert(QVariant::StringList)) {
kError() << "not all types in \"" << key << "\" can convert to QString,"
" information will be lost";
}
case QVariant::StringList:
writeEntry( key, value.toList(), flags );
return;