diff --git a/delegate.cpp b/delegate.cpp index 29c7a819b..ebb61a00a 100644 --- a/delegate.cpp +++ b/delegate.cpp @@ -246,7 +246,7 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, } if (subTitleText == titleText) { - subTitleText = QString(); + subTitleText.clear(); } QFont subTitleFont = d->fontForSubTitle(option.font); diff --git a/svg.cpp b/svg.cpp index 11cfdedf9..66c919231 100644 --- a/svg.cpp +++ b/svg.cpp @@ -87,7 +87,8 @@ class SvgPrivate } themed = !QDir::isAbsolutePath(imagePath); - path = themePath = QString(); + path.clear(); + themePath.clear(); if (themed) { themePath = imagePath; diff --git a/theme.cpp b/theme.cpp index d2549d2af..99edd642a 100644 --- a/theme.cpp +++ b/theme.cpp @@ -457,7 +457,7 @@ void Theme::setUseGlobalSettings(bool useGlobal) d->useGlobal = useGlobal; d->cfg = KConfigGroup(); - d->themeName = QString(); + d->themeName.clear(); settingsChanged(); }