From a33e94d36c0bc0f01286edddf3f72309135f9eff Mon Sep 17 00:00:00 2001 From: Karol Szwed Date: Tue, 29 Jul 2003 13:12:39 +0000 Subject: [PATCH] Remove nasty static_cast(QObject*) which was creating the crashes. CCMAIL: 61140-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=239860 --- kcmkwin/kwindecoration/kwindecoration.cpp | 2 +- kcmkwin/kwindecoration/kwindecoration.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kcmkwin/kwindecoration/kwindecoration.cpp b/kcmkwin/kwindecoration/kwindecoration.cpp index 28e9e490e4..7f7f281d05 100644 --- a/kcmkwin/kwindecoration/kwindecoration.cpp +++ b/kcmkwin/kwindecoration/kwindecoration.cpp @@ -291,7 +291,7 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const QString& currentDec if (alloc_ptr != NULL) { allocatePlugin = (QObject* (*)(KConfig* conf, QWidget* parent))alloc_ptr; - pluginObject = static_cast(allocatePlugin( conf, pluginConfigWidget )); + pluginObject = (QObject*)(allocatePlugin( conf, pluginConfigWidget )); // connect required signals and slots together... connect( pluginObject, SIGNAL(changed()), this, SLOT(slotSelectionChanged()) ); diff --git a/kcmkwin/kwindecoration/kwindecoration.h b/kcmkwin/kwindecoration/kwindecoration.h index 2396ebe425..924f6d4c60 100644 --- a/kcmkwin/kwindecoration/kwindecoration.h +++ b/kcmkwin/kwindecoration/kwindecoration.h @@ -91,7 +91,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface ButtonSource* buttonSource; // Page 3 - QWidget* pluginObject; + QObject* pluginObject; QLabel* noPluginSettings; QString currentLibraryName; QString oldLibraryName;