-rw-r--r-- | noncore/styles/metal/plugin.cpp | 4 | ||||
-rw-r--r-- | noncore/styles/metal/plugin.h | 2 |
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,19 +1,19 @@ | |||
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 | ||
7 | MetalInterface::MetalInterface ( ) : ref ( 0 ) | 7 | MetalInterface::MetalInterface ( ) |
8 | { | 8 | { |
9 | } | 9 | } |
10 | 10 | ||
11 | MetalInterface::~MetalInterface ( ) | 11 | MetalInterface::~MetalInterface ( ) |
12 | { | 12 | { |
13 | } | 13 | } |
14 | 14 | ||
15 | QStyle *MetalInterface::style ( ) | 15 | QStyle *MetalInterface::style ( ) |
16 | { | 16 | { |
17 | return new MetalStyle ( ); | 17 | return new MetalStyle ( ); |
18 | } | 18 | } |
19 | 19 | ||
@@ -22,24 +22,26 @@ QString MetalInterface::name ( ) const | |||
22 | return qApp-> translate ( "Styles", "Metal" ); | 22 | return qApp-> translate ( "Styles", "Metal" ); |
23 | } | 23 | } |
24 | 24 | ||
25 | 25 | ||
26 | QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 26 | QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
27 | { | 27 | { |
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 | } |
40 | 42 | ||
41 | Q_EXPORT_INTERFACE() | 43 | Q_EXPORT_INTERFACE() |
42 | { | 44 | { |
43 | Q_CREATE_INSTANCE( MetalInterface ) | 45 | Q_CREATE_INSTANCE( MetalInterface ) |
44 | } | 46 | } |
45 | 47 | ||
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 | |||
@@ -6,17 +6,15 @@ | |||
6 | 6 | ||
7 | class MetalInterface : public StyleInterface { | 7 | class MetalInterface : public StyleInterface { |
8 | public: | 8 | public: |
9 | MetalInterface ( ); | 9 | MetalInterface ( ); |
10 | virtual ~MetalInterface ( ); | 10 | virtual ~MetalInterface ( ); |
11 | 11 | ||
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 | ||
18 | private: | ||
19 | ulong ref; | ||
20 | }; | 18 | }; |
21 | 19 | ||
22 | #endif | 20 | #endif |