From c79bbb6696edf7539ebeda64092f3f91f65ba500 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 05 Feb 2004 17:42:00 +0000 Subject: Janitor: remove ulong ref --- (limited to 'noncore/decorations/flat') diff --git a/noncore/decorations/flat/flat.cpp b/noncore/decorations/flat/flat.cpp index b6a81a3..a2f12be 100644 --- a/noncore/decorations/flat/flat.cpp +++ b/noncore/decorations/flat/flat.cpp @@ -200,7 +200,7 @@ static void colorize( QImage &img, const QColor &c, bool rev ) } } -FlatDecoration::FlatDecoration() : ref(0), buttonCache(16) +FlatDecoration::FlatDecoration() : buttonCache(16) { buttonCache.setAutoDelete(TRUE); } @@ -347,6 +347,8 @@ QRESULT FlatDecoration::queryInterface( const QUuid &uuid, QUnknownInterface **i *iface = this; else if ( uuid == IID_WindowDecoration ) *iface = this; + else + return QS_FALSE; if ( *iface ) (*iface)->addRef(); diff --git a/noncore/decorations/flat/flat.h b/noncore/decorations/flat/flat.h index 3d8a18b..96ceb1f 100644 --- a/noncore/decorations/flat/flat.h +++ b/noncore/decorations/flat/flat.h @@ -42,7 +42,6 @@ public: Q_REFCOUNT private: - ulong ref; QCache buttonCache; }; -- cgit v0.9.0.2