kcontrol: use object instead of pointer for Katie settings in krdb

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-06-11 22:51:20 +03:00
parent cbc80bb4e1
commit df0e139a32

View file

@ -443,15 +443,14 @@ void runRdb( uint flags )
/* Katie exports */
if ( exportQtColors || exportQtSettings )
{
QSettings* settings = new QSettings(QLatin1String("Katie"), QSettings::NativeFormat);
QSettings settings(QLatin1String("Katie"), QSettings::NativeFormat);
if ( exportQtColors )
applyQtColors( kglobalcfg, *settings, newPal ); // For kcmcolors
applyQtColors( kglobalcfg, settings, newPal ); // For kcmcolors
if ( exportQtSettings )
applyQtSettings( kglobalcfg, *settings ); // For kcmstyle
applyQtSettings( kglobalcfg, settings ); // For kcmstyle
delete settings;
QApplication::flush();
#ifdef Q_WS_X11
// We let KIPC take care of ourselves, as we are in a KDE app with