summaryrefslogtreecommitdiff
path: root/noncore/styles/metal
Unidiff
Diffstat (limited to 'noncore/styles/metal') (more/less context) (show 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
@@ -1,13 +1,13 @@
1#include <qapplication.h> 1#include <qapplication.h>
2 2
3#include "metal.h" 3#include "metal.h"
4#include "plugin.h" 4#include "plugin.h"
5 5
6 6
7MetalInterface::MetalInterface ( ) : ref ( 0 ) 7MetalInterface::MetalInterface ( )
8{ 8{
9} 9}
10 10
11MetalInterface::~MetalInterface ( ) 11MetalInterface::~MetalInterface ( )
12{ 12{
13} 13}
@@ -28,12 +28,14 @@ QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **
28 *iface = 0; 28 *iface = 0;
29 29
30 if ( uuid == IID_QUnknown ) 30 if ( uuid == IID_QUnknown )
31 *iface = this; 31 *iface = this;
32 else if ( uuid == IID_Style ) 32 else if ( uuid == IID_Style )
33 *iface = this; 33 *iface = this;
34 else
35 return QS_FALSE;
34 36
35 if ( *iface ) 37 if ( *iface )
36 (*iface)-> addRef ( ); 38 (*iface)-> addRef ( );
37 39
38 return QS_OK; 40 return QS_OK;
39} 41}
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
@@ -12,11 +12,9 @@ public:
12 QRESULT queryInterface ( const QUuid &, QUnknownInterface ** ); 12 QRESULT queryInterface ( const QUuid &, QUnknownInterface ** );
13 Q_REFCOUNT 13 Q_REFCOUNT
14 14
15 virtual QStyle *style ( ); 15 virtual QStyle *style ( );
16 virtual QString name ( ) const; 16 virtual QString name ( ) const;
17 17
18private:
19 ulong ref;
20}; 18};
21 19
22#endif 20#endif