mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
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:
parent
be9020b3e4
commit
c2d6368ce1
1 changed files with 4 additions and 3 deletions
|
@ -888,9 +888,10 @@ void KConfigGroup::writeEntry( const char* key, const QVariant &value,
|
||||||
data = value.toString().toUtf8();
|
data = value.toString().toUtf8();
|
||||||
break;
|
break;
|
||||||
case QVariant::List:
|
case QVariant::List:
|
||||||
kError(!value.canConvert(QVariant::StringList))
|
if (!value.canConvert(QVariant::StringList)) {
|
||||||
<< "not all types in \"" << key << "\" can convert to QString,"
|
kError() << "not all types in \"" << key << "\" can convert to QString,"
|
||||||
" information will be lost";
|
" information will be lost";
|
||||||
|
}
|
||||||
case QVariant::StringList:
|
case QVariant::StringList:
|
||||||
writeEntry( key, value.toList(), flags );
|
writeEntry( key, value.toList(), flags );
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue