summaryrefslogtreecommitdiff
path: root/noncore/decorations/liquid/liquid.cpp
authorzecke <zecke>2004-02-05 17:42:00 (UTC)
committer zecke <zecke>2004-02-05 17:42:00 (UTC)
commitc79bbb6696edf7539ebeda64092f3f91f65ba500 (patch) (unidiff)
treecb05c94b563d42bb27628d398dbb28beebdee46d /noncore/decorations/liquid/liquid.cpp
parent4ce8201e80a0b60a8e5d9d875bf00602303d6a0b (diff)
downloadopie-c79bbb6696edf7539ebeda64092f3f91f65ba500.zip
opie-c79bbb6696edf7539ebeda64092f3f91f65ba500.tar.gz
opie-c79bbb6696edf7539ebeda64092f3f91f65ba500.tar.bz2
Janitor: remove ulong ref
Diffstat (limited to 'noncore/decorations/liquid/liquid.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/decorations/liquid/liquid.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/decorations/liquid/liquid.cpp b/noncore/decorations/liquid/liquid.cpp
index 75b1fc9..ef2ac3c 100644
--- a/noncore/decorations/liquid/liquid.cpp
+++ b/noncore/decorations/liquid/liquid.cpp
@@ -1,21 +1,21 @@
1#include "liquid.h" 1#include "liquid.h"
2 2
3#include <qapplication.h> 3#include <qapplication.h>
4#include <qpainter.h> 4#include <qpainter.h>
5#include <qpalette.h> 5#include <qpalette.h>
6#include <qdrawutil.h> 6#include <qdrawutil.h>
7 7
8 8
9LiquidDecoInterface::LiquidDecoInterface ( ) : ref ( 0 ) 9LiquidDecoInterface::LiquidDecoInterface ( )
10{ 10{
11} 11}
12 12
13LiquidDecoInterface::~LiquidDecoInterface ( ) 13LiquidDecoInterface::~LiquidDecoInterface ( )
14{ 14{
15} 15}
16 16
17 17
18 18
19QString LiquidDecoInterface::name ( ) const 19QString LiquidDecoInterface::name ( ) const
20{ 20{
21 return qApp-> translate ( "Decoration", "Liquid" ); 21 return qApp-> translate ( "Decoration", "Liquid" );
@@ -113,24 +113,26 @@ void LiquidDecoInterface::drawArea( Area a, QPainter *p, const WindowData *wd )
113 } 113 }
114 } 114 }
115} 115}
116 116
117QRESULT LiquidDecoInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) 117QRESULT LiquidDecoInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface )
118{ 118{
119 *iface = 0; 119 *iface = 0;
120 120
121 if ( uuid == IID_QUnknown ) 121 if ( uuid == IID_QUnknown )
122 *iface = this; 122 *iface = this;
123 else if ( uuid == IID_WindowDecoration ) 123 else if ( uuid == IID_WindowDecoration )
124 *iface = this; 124 *iface = this;
125 else
126 return QS_FALSE;
125 127
126 if ( *iface ) 128 if ( *iface )
127 (*iface)-> addRef ( ); 129 (*iface)-> addRef ( );
128 130
129 return QS_OK; 131 return QS_OK;
130} 132}
131 133
132Q_EXPORT_INTERFACE() 134Q_EXPORT_INTERFACE()
133{ 135{
134 Q_CREATE_INSTANCE( LiquidDecoInterface ) 136 Q_CREATE_INSTANCE( LiquidDecoInterface )
135} 137}
136 138