author | llornkcor <llornkcor> | 2002-06-23 03:12:26 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-23 03:12:26 (UTC) |
commit | f3aa76578638116c92652e37b57075850ee17dd3 (patch) (side-by-side diff) | |
tree | af09f06e462b156ab9c8dc2e7ddfcaf673a74cf7 /core/applets/vmemo/vmemoimpl.cpp | |
parent | 8c65ca19eb339c08fc16752697276b7e80794f2d (diff) | |
download | opie-f3aa76578638116c92652e37b57075850ee17dd3.zip opie-f3aa76578638116c92652e37b57075850ee17dd3.tar.gz opie-f3aa76578638116c92652e37b57075850ee17dd3.tar.bz2 |
error checking
Diffstat (limited to 'core/applets/vmemo/vmemoimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/vmemo/vmemoimpl.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/core/applets/vmemo/vmemoimpl.cpp b/core/applets/vmemo/vmemoimpl.cpp index 9e6c7cd..ef4a3a6 100644 --- a/core/applets/vmemo/vmemoimpl.cpp +++ b/core/applets/vmemo/vmemoimpl.cpp @@ -1,12 +1,12 @@ /**************************************************************************************94x78** -** -** 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. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -*********************************************************************************************/ + ** + ** 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. + ** + ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + ** + *********************************************************************************************/ @@ -21,3 +21,3 @@ VMemoAppletImpl::VMemoAppletImpl() - : vmemo(0), ref(0) + : vmemo(0), ref(0) { @@ -33,3 +33,3 @@ QWidget *VMemoAppletImpl::applet( QWidget *parent ) if ( !vmemo ) - vmemo = new VMemo( parent ); + vmemo = new VMemo( parent ); return vmemo; @@ -44,11 +44,11 @@ QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface ** { - *iface = 0; - if ( uuid == IID_QUnknown ) - *iface = this; - else if ( uuid == IID_TaskbarApplet ) - *iface = this; + *iface = 0; + if ( uuid == IID_QUnknown ) + *iface = this; + else if ( uuid == IID_TaskbarApplet ) + *iface = this; - if ( *iface ) - (*iface)->addRef(); - return QS_OK; + if ( *iface ) + (*iface)->addRef(); + return QS_OK; } @@ -58,2 +58,2 @@ Q_EXPORT_INTERFACE() Q_CREATE_INSTANCE( VMemoAppletImpl ) -} + } |