8 files changed, 4 insertions, 8 deletions
diff --git a/noncore/applets/autorotateapplet/autorotateimpl.cpp b/noncore/applets/autorotateapplet/autorotateimpl.cpp index 1b15c6d..305ac50 100644 --- a/noncore/applets/autorotateapplet/autorotateimpl.cpp +++ b/noncore/applets/autorotateapplet/autorotateimpl.cpp @@ -1,22 +1,22 @@ #include "autorotate.h" #include "autorotateimpl.h" AutoRotateImpl::AutoRotateImpl() - : autoRotate(0), ref(0) { + : autoRotate(0){ qDebug ("here"); } AutoRotateImpl::~AutoRotateImpl() { delete autoRotate; } QWidget *AutoRotateImpl::applet( QWidget *parent ) { if ( !autoRotate ) { autoRotate = new AutoRotate( parent ); } return autoRotate; } int AutoRotateImpl::position() const { return 7; diff --git a/noncore/applets/autorotateapplet/autorotateimpl.h b/noncore/applets/autorotateapplet/autorotateimpl.h index 87b0731..fde23a9 100644 --- a/noncore/applets/autorotateapplet/autorotateimpl.h +++ b/noncore/applets/autorotateapplet/autorotateimpl.h @@ -2,18 +2,17 @@ class AutoRotate; class AutoRotateImpl : public TaskbarAppletInterface { public: AutoRotateImpl(); virtual ~AutoRotateImpl(); QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT virtual QWidget *applet( QWidget *parent ); virtual int position() const; private: AutoRotate *autoRotate; - ulong ref; }; 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 @@ -8,33 +8,33 @@ ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "memorymeter.h" #include "memoryappletimpl.h" MemoryAppletImpl::MemoryAppletImpl() - : memory(0), ref(0) + : memory(0) { } MemoryAppletImpl::~MemoryAppletImpl() { delete memory; } QWidget *MemoryAppletImpl::applet( QWidget *parent ) { if ( !memory ) memory = new MemoryMeter( parent ); return memory; } 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 @@ -25,20 +25,19 @@ class MemoryMeter; class /*QTOPIA_PLUGIN_EXPORT*/ MemoryAppletImpl : public TaskbarAppletInterface { public: MemoryAppletImpl(); virtual ~MemoryAppletImpl(); QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT virtual QWidget *applet( QWidget *parent ); virtual int position() const; private: MemoryMeter *memory; - ulong ref; }; #endif diff --git a/noncore/applets/notesapplet/notesappletimpl.cpp b/noncore/applets/notesapplet/notesappletimpl.cpp index 93de433..8a9da7f 100644 --- a/noncore/applets/notesapplet/notesappletimpl.cpp +++ b/noncore/applets/notesapplet/notesappletimpl.cpp @@ -1,33 +1,33 @@ /********************************************************************** ** Copyright (C) 2002 L.J. Potter <llornkcor@handhelds.org> ** ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** **********************************************************************/ #include "notes.h" #include "notesappletimpl.h" NotesAppletImpl::NotesAppletImpl() - : notes(0), ref(0) { + : notes(0){ } NotesAppletImpl::~NotesAppletImpl() { // not needed though cause we should have a valid parent delete notes; } QWidget *NotesAppletImpl::applet( QWidget *parent ) { if ( !notes ) notes = new NotesApplet( parent ); return notes; } int NotesAppletImpl::position() const { return 6; } diff --git a/noncore/applets/notesapplet/notesappletimpl.h b/noncore/applets/notesapplet/notesappletimpl.h index add9865..a87118c 100644 --- a/noncore/applets/notesapplet/notesappletimpl.h +++ b/noncore/applets/notesapplet/notesappletimpl.h @@ -17,20 +17,19 @@ class NotesApplet; class NotesAppletImpl : public TaskbarAppletInterface { public: NotesAppletImpl(); virtual ~NotesAppletImpl(); QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT virtual QWidget *applet( QWidget *parent ); virtual int position() const; private: NotesApplet *notes; - ulong ref; }; #endif diff --git a/noncore/applets/wirelessapplet/wirelessappletimpl.cpp b/noncore/applets/wirelessapplet/wirelessappletimpl.cpp index 8b7afcf..de70714 100644 --- a/noncore/applets/wirelessapplet/wirelessappletimpl.cpp +++ b/noncore/applets/wirelessapplet/wirelessappletimpl.cpp @@ -9,33 +9,33 @@ ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "wireless.h" #include "wirelessappletimpl.h" WirelessAppletImpl::WirelessAppletImpl() - : wireless(0), ref(0) + : wireless(0) { } WirelessAppletImpl::~WirelessAppletImpl() { delete wireless; } QWidget *WirelessAppletImpl::applet( QWidget *parent ) { if ( !wireless ) wireless = new WirelessApplet( parent ); return wireless; } int WirelessAppletImpl::position() const diff --git a/noncore/applets/wirelessapplet/wirelessappletimpl.h b/noncore/applets/wirelessapplet/wirelessappletimpl.h index 7008d51..1bf4507 100644 --- a/noncore/applets/wirelessapplet/wirelessappletimpl.h +++ b/noncore/applets/wirelessapplet/wirelessappletimpl.h @@ -25,20 +25,19 @@ class WirelessApplet; class WirelessAppletImpl : public TaskbarAppletInterface { public: WirelessAppletImpl(); virtual ~WirelessAppletImpl(); QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT virtual QWidget *applet( QWidget *parent ); virtual int position() const; private: WirelessApplet *wireless; - ulong ref; }; #endif |