[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.2,1.3
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.2,1.3 |
Date: |
18 Jun 2002 10:04:13 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv9633/editor
Modified Files:
editor.cxx
Log Message:
changed check for instance to the recommended if ( ! x ) instead of if (x == 0)
Index: editor.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editor.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- editor.cxx 13 Jun 2002 15:40:22 -0000 1.2
+++ editor.cxx 18 Jun 2002 10:04:11 -0000 1.3
@@ -49,7 +49,7 @@
Editor*
Editor::instance ()
{
- if (instance_ == 0)
+ if ( ! instance_)
instance_ = new Editor ();
return instance_;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.2,1.3,
torangan <=