From c2d6368ce1518a63a4e33b5822da2cdcd13cecf0 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 22 Oct 2022 23:19:11 +0300 Subject: [PATCH] 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 --- kdecore/config/kconfiggroup.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kdecore/config/kconfiggroup.cpp b/kdecore/config/kconfiggroup.cpp index 2e3d53f7..bae27a84 100644 --- a/kdecore/config/kconfiggroup.cpp +++ b/kdecore/config/kconfiggroup.cpp @@ -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;