summaryrefslogtreecommitdiff
path: root/noncore/applets/memoryapplet
authorzecke <zecke>2004-02-05 17:43:45 (UTC)
committer zecke <zecke>2004-02-05 17:43:45 (UTC)
commitc5db70388cbe21934d4e3b2df3e8c8c1d9807d41 (patch) (unidiff)
tree5ec39d9114a60dac06c58e2bcf700f8d0b9a4345 /noncore/applets/memoryapplet
parentc79bbb6696edf7539ebeda64092f3f91f65ba500 (diff)
downloadopie-c5db70388cbe21934d4e3b2df3e8c8c1d9807d41.zip
opie-c5db70388cbe21934d4e3b2df3e8c8c1d9807d41.tar.gz
opie-c5db70388cbe21934d4e3b2df3e8c8c1d9807d41.tar.bz2
Janitor: ulong ref removed
Diffstat (limited to 'noncore/applets/memoryapplet') (more/less context) (show whitespace changes)
-rw-r--r--noncore/applets/memoryapplet/memoryappletimpl.cpp2
-rw-r--r--noncore/applets/memoryapplet/memoryappletimpl.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/noncore/applets/memoryapplet/memoryappletimpl.cpp b/noncore/applets/memoryapplet/memoryappletimpl.cpp
index a57f4a9..a117e7f 100644
--- a/noncore/applets/memoryapplet/memoryappletimpl.cpp
+++ b/noncore/applets/memoryapplet/memoryappletimpl.cpp
@@ -12,25 +12,25 @@
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#include "memorymeter.h" 20#include "memorymeter.h"
21#include "memoryappletimpl.h" 21#include "memoryappletimpl.h"
22 22
23MemoryAppletImpl::MemoryAppletImpl() 23MemoryAppletImpl::MemoryAppletImpl()
24 : memory(0), ref(0) 24 : memory(0)
25{ 25{
26} 26}
27 27
28MemoryAppletImpl::~MemoryAppletImpl() 28MemoryAppletImpl::~MemoryAppletImpl()
29{ 29{
30 delete memory; 30 delete memory;
31} 31}
32 32
33QWidget *MemoryAppletImpl::applet( QWidget *parent ) 33QWidget *MemoryAppletImpl::applet( QWidget *parent )
34{ 34{
35 if ( !memory ) 35 if ( !memory )
36 memory = new MemoryMeter( parent ); 36 memory = new MemoryMeter( parent );
diff --git a/noncore/applets/memoryapplet/memoryappletimpl.h b/noncore/applets/memoryapplet/memoryappletimpl.h
index e0016e1..2db7dbe 100644
--- a/noncore/applets/memoryapplet/memoryappletimpl.h
+++ b/noncore/applets/memoryapplet/memoryappletimpl.h
@@ -29,16 +29,15 @@ class /*QTOPIA_PLUGIN_EXPORT*/ MemoryAppletImpl : public TaskbarAppletInterface
29public: 29public:
30 MemoryAppletImpl(); 30 MemoryAppletImpl();
31 virtual ~MemoryAppletImpl(); 31 virtual ~MemoryAppletImpl();
32 32
33 QRESULT queryInterface( const QUuid&, QUnknownInterface** ); 33 QRESULT queryInterface( const QUuid&, QUnknownInterface** );
34 Q_REFCOUNT 34 Q_REFCOUNT
35 35
36 virtual QWidget *applet( QWidget *parent ); 36 virtual QWidget *applet( QWidget *parent );
37 virtual int position() const; 37 virtual int position() const;
38 38
39private: 39private:
40 MemoryMeter *memory; 40 MemoryMeter *memory;
41 ulong ref;
42}; 41};
43 42
44#endif 43#endif