summaryrefslogtreecommitdiff
path: root/core/applets/rotateapplet
Unidiff
Diffstat (limited to 'core/applets/rotateapplet') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/rotateapplet/rotate.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp
index 906063e..b676c74 100644
--- a/core/applets/rotateapplet/rotate.cpp
+++ b/core/applets/rotateapplet/rotate.cpp
@@ -233,22 +233,24 @@ void RotateApplet::activated()
233 233
234 m_flipped = !m_flipped; 234 m_flipped = !m_flipped;
235} 235}
236 236
237 237
238QRESULT RotateApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 238QRESULT RotateApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
239{ 239{
240 *iface = 0; 240 *iface = 0;
241 if ( uuid == IID_QUnknown ) 241 if ( uuid == IID_QUnknown )
242 *iface = this; 242 *iface = this;
243 else if ( uuid == IID_MenuApplet ) 243 else if ( uuid == IID_MenuApplet )
244 *iface = this; 244 *iface = this;
245 else
246 return QS_FALSE;
245 247
246 if ( *iface ) 248 if ( *iface )
247 (*iface)->addRef(); 249 (*iface)->addRef();
248 return QS_OK; 250 return QS_OK;
249} 251}
250 252
251Q_EXPORT_INTERFACE() 253Q_EXPORT_INTERFACE()
252{ 254{
253 Q_CREATE_INSTANCE( RotateApplet ) 255 Q_CREATE_INSTANCE( RotateApplet )
254} 256}