summaryrefslogtreecommitdiff
path: root/noncore/styles/theme/plugin.cpp
authorzecke <zecke>2004-02-05 17:42:00 (UTC)
committer zecke <zecke>2004-02-05 17:42:00 (UTC)
commitc79bbb6696edf7539ebeda64092f3f91f65ba500 (patch) (side-by-side diff)
treecb05c94b563d42bb27628d398dbb28beebdee46d /noncore/styles/theme/plugin.cpp
parent4ce8201e80a0b60a8e5d9d875bf00602303d6a0b (diff)
downloadopie-c79bbb6696edf7539ebeda64092f3f91f65ba500.zip
opie-c79bbb6696edf7539ebeda64092f3f91f65ba500.tar.gz
opie-c79bbb6696edf7539ebeda64092f3f91f65ba500.tar.bz2
Janitor: remove ulong ref
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
@@ -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;
}