summaryrefslogtreecommitdiff
path: root/noncore/styles/metal
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/metal
parent4ce8201e80a0b60a8e5d9d875bf00602303d6a0b (diff)
downloadopie-c79bbb6696edf7539ebeda64092f3f91f65ba500.zip
opie-c79bbb6696edf7539ebeda64092f3f91f65ba500.tar.gz
opie-c79bbb6696edf7539ebeda64092f3f91f65ba500.tar.bz2
Janitor: remove ulong ref
Diffstat (limited to 'noncore/styles/metal') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/metal/plugin.cpp4
-rw-r--r--noncore/styles/metal/plugin.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/noncore/styles/metal/plugin.cpp b/noncore/styles/metal/plugin.cpp
index 4c9f64d..2f0f530 100644
--- a/noncore/styles/metal/plugin.cpp
+++ b/noncore/styles/metal/plugin.cpp
@@ -4,7 +4,7 @@
#include "plugin.h"
-MetalInterface::MetalInterface ( ) : ref ( 0 )
+MetalInterface::MetalInterface ( )
{
}
@@ -31,6 +31,8 @@ QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **
*iface = this;
else if ( uuid == IID_Style )
*iface = this;
+ else
+ return QS_FALSE;
if ( *iface )
(*iface)-> addRef ( );
diff --git a/noncore/styles/metal/plugin.h b/noncore/styles/metal/plugin.h
index 545aea9..7a38d62 100644
--- a/noncore/styles/metal/plugin.h
+++ b/noncore/styles/metal/plugin.h
@@ -15,8 +15,6 @@ public:
virtual QStyle *style ( );
virtual QString name ( ) const;
-private:
- ulong ref;
};
#endif