pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src pingu_action_factory.cxx,1.2,1.3 worl


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src pingu_action_factory.cxx,1.2,1.3 worldobj_data_factory.cxx,1.1,1.2
Date: 18 Jun 2002 10:04:13 -0000

Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv9633

Modified Files:
        pingu_action_factory.cxx worldobj_data_factory.cxx 
Log Message:
changed check for instance to the recommended if ( ! x ) instead of if (x == 0)


Index: pingu_action_factory.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/pingu_action_factory.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pingu_action_factory.cxx    13 Jun 2002 14:25:12 -0000      1.2
+++ pingu_action_factory.cxx    18 Jun 2002 10:04:11 -0000      1.3
@@ -55,7 +55,7 @@
 PinguActionFactory* 
 PinguActionFactory::instance ()
 {
-  if (instance_ == 0)
+  if ( ! instance_)
     {
       instance_ = new PinguActionFactory ();
       instance_->register_core_actions ();

Index: worldobj_data_factory.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobj_data_factory.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- worldobj_data_factory.cxx   12 Jun 2002 19:09:38 -0000      1.1
+++ worldobj_data_factory.cxx   18 Jun 2002 10:04:11 -0000      1.2
@@ -49,7 +49,7 @@
 WorldObjDataFactory* 
 WorldObjDataFactory::instance () 
 { 
-  if (instance_ == 0) 
+  if ( ! instance_) 
     {
       instance_ = new WorldObjDataFactory ();
       




reply via email to

[Prev in Thread] Current Thread [Next in Thread]