From c79bbb6696edf7539ebeda64092f3f91f65ba500 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 05 Feb 2004 17:42:00 +0000 Subject: Janitor: remove ulong ref --- (limited to 'noncore/styles/metal') 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 -- cgit v0.9.0.2