summaryrefslogtreecommitdiff
path: root/noncore/styles/metal/plugin.cpp
Side-by-side diff
Diffstat (limited to 'noncore/styles/metal/plugin.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/styles/metal/plugin.cpp4
1 files changed, 3 insertions, 1 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 @@
#include <qapplication.h>
#include "metal.h"
#include "plugin.h"
-MetalInterface::MetalInterface ( ) : ref ( 0 )
+MetalInterface::MetalInterface ( )
{
}
MetalInterface::~MetalInterface ( )
{
}
QStyle *MetalInterface::style ( )
{
return new MetalStyle ( );
}
@@ -22,24 +22,26 @@ QString MetalInterface::name ( ) const
return qApp-> translate ( "Styles", "Metal" );
}
QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface )
{
*iface = 0;
if ( uuid == IID_QUnknown )
*iface = this;
else if ( uuid == IID_Style )
*iface = this;
+ else
+ return QS_FALSE;
if ( *iface )
(*iface)-> addRef ( );
return QS_OK;
}
Q_EXPORT_INTERFACE()
{
Q_CREATE_INSTANCE( MetalInterface )
}