summaryrefslogtreecommitdiff
path: root/noncore/styles/fresh/fresh.cpp
Unidiff
Diffstat (limited to 'noncore/styles/fresh/fresh.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/styles/fresh/fresh.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/styles/fresh/fresh.cpp b/noncore/styles/fresh/fresh.cpp
index 0730329..831b620 100644
--- a/noncore/styles/fresh/fresh.cpp
+++ b/noncore/styles/fresh/fresh.cpp
@@ -801,13 +801,13 @@ void FreshStyle::drawPopupMenuItem( QPainter* p, bool checkable, int maxpmw, int
801#endif 801#endif
802} 802}
803 803
804//=========================================================================== 804//===========================================================================
805 805
806FreshStyleImpl::FreshStyleImpl() 806FreshStyleImpl::FreshStyleImpl()
807 : fresh(0), ref(0) 807 : fresh(0)
808{ 808{
809} 809}
810 810
811FreshStyleImpl::~FreshStyleImpl() 811FreshStyleImpl::~FreshStyleImpl()
812{ 812{
813 // We do not delete the style because Qt does that when a new style 813 // We do not delete the style because Qt does that when a new style
@@ -830,12 +830,14 @@ QRESULT FreshStyleImpl::queryInterface( const QUuid &uuid, QUnknownInterface **i
830{ 830{
831 *iface = 0; 831 *iface = 0;
832 if ( uuid == IID_QUnknown ) 832 if ( uuid == IID_QUnknown )
833 *iface = this; 833 *iface = this;
834 else if ( uuid == IID_Style ) 834 else if ( uuid == IID_Style )
835 *iface = this; 835 *iface = this;
836 else
837 return QS_FALSE;
836 838
837 if ( *iface ) 839 if ( *iface )
838 (*iface)->addRef(); 840 (*iface)->addRef();
839 return QS_OK; 841 return QS_OK;
840} 842}
841 843