use QString::clear() to clear a QString instead of assigning QString().

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870305
This commit is contained in:
Allen Winter 2008-10-12 11:05:42 +00:00
parent d0c8c9cee1
commit c4573eae9a
3 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -87,7 +87,8 @@ class SvgPrivate
}
themed = !QDir::isAbsolutePath(imagePath);
path = themePath = QString();
path.clear();
themePath.clear();
if (themed) {
themePath = imagePath;

View File

@ -457,7 +457,7 @@ void Theme::setUseGlobalSettings(bool useGlobal)
d->useGlobal = useGlobal;
d->cfg = KConfigGroup();
d->themeName = QString();
d->themeName.clear();
settingsChanged();
}