summaryrefslogtreecommitdiff
path: root/noncore/styles/theme
Side-by-side diff
Diffstat (limited to 'noncore/styles/theme') (more/less context) (show whitespace changes)
-rw-r--r--noncore/styles/theme/plugin.cpp4
-rw-r--r--noncore/styles/theme/plugin.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/noncore/styles/theme/plugin.cpp b/noncore/styles/theme/plugin.cpp
index 2560720..dca8685 100644
--- a/noncore/styles/theme/plugin.cpp
+++ b/noncore/styles/theme/plugin.cpp
@@ -3,13 +3,13 @@
#include "othemestyle.h"
#include "themeset.h"
#include "plugin.h"
-ThemeInterface::ThemeInterface ( ) : ref ( 0 )
+ThemeInterface::ThemeInterface ( )
{
m_widget = 0;
}
ThemeInterface::~ThemeInterface ( )
{
@@ -62,12 +62,14 @@ QRESULT ThemeInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **
if ( uuid == IID_QUnknown )
*iface = this;
else if ( uuid == IID_Style )
*iface = this;
else if ( uuid == IID_StyleExtended )
*iface = this;
+ else
+ return QS_FALSE;
if ( *iface )
(*iface)-> addRef ( );
return QS_OK;
}
diff --git a/noncore/styles/theme/plugin.h b/noncore/styles/theme/plugin.h
index 60cae97..c67f1e4 100644
--- a/noncore/styles/theme/plugin.h
+++ b/noncore/styles/theme/plugin.h
@@ -24,10 +24,9 @@ public:
virtual bool accept ( );
virtual void reject ( );
private:
ThemeSettings *m_widget;
- ulong ref;
};
#endif