mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +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();
|
||||
break;
|
||||
case QVariant::List:
|
||||
kError(!value.canConvert(QVariant::StringList))
|
||||
<< "not all types in \"" << key << "\" can convert to QString,"
|
||||
" information will be lost";
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue