summaryrefslogtreecommitdiff
path: root/noncore/styles/theme/plugin.cpp
Side-by-side diff
Diffstat (limited to 'noncore/styles/theme/plugin.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/styles/theme/plugin.cpp4
1 files changed, 3 insertions, 1 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
@@ -1,21 +1,21 @@
#include <qapplication.h>
#include "othemestyle.h"
#include "themeset.h"
#include "plugin.h"
-ThemeInterface::ThemeInterface ( ) : ref ( 0 )
+ThemeInterface::ThemeInterface ( )
{
m_widget = 0;
}
ThemeInterface::~ThemeInterface ( )
{
}
QStyle *ThemeInterface::style ( )
{
return new OThemeStyle ( "" );
}
@@ -56,24 +56,26 @@ void ThemeInterface::reject ( )
QRESULT ThemeInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface )
{
*iface = 0;
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;
}
Q_EXPORT_INTERFACE()
{
Q_CREATE_INSTANCE( ThemeInterface )
}