summaryrefslogtreecommitdiffstats
path: root/src/Instance.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-04-14 11:19:00 +0200
committerneoraider <devnull@localhost>2008-04-14 11:19:00 +0200
commit9c24bd0bb259124e36367c9c8a62af7b19ba8e67 (patch)
treefe3274185ef36bfd64e0c73ec364602109ba3a98 /src/Instance.cpp
parent55af49b48328d4828fe8520d7d7aa0bc776afeb0 (diff)
downloadzoomedit-9c24bd0bb259124e36367c9c8a62af7b19ba8e67.tar
zoomedit-9c24bd0bb259124e36367c9c8a62af7b19ba8e67.zip
zoomedit:
* Use 0 instead of NULL consistantly
Diffstat (limited to 'src/Instance.cpp')
-rw-r--r--src/Instance.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Instance.cpp b/src/Instance.cpp
index f602bbf..6d01d99 100644
--- a/src/Instance.cpp
+++ b/src/Instance.cpp
@@ -28,7 +28,7 @@ namespace ZoomEdit {
guint Instance::instances = 0;
-Instance::Instance(const Glib::ustring &file) : window(NULL), levelXml(NULL), level(NULL) {
+Instance::Instance(const Glib::ustring &file) : window(0), levelXml(0), level(0) {
instances++;
#ifdef GLIBMM_EXCEPTIONS_ENABLED
@@ -114,7 +114,7 @@ void Instance::createLevel() {
bool Instance::loadLevel(const Glib::ustring &file) {
if(level) {
delete level;
- level = NULL;
+ level = 0;
}
if(levelXml)
@@ -131,7 +131,7 @@ bool Instance::loadLevel(const Glib::ustring &file) {
level = new Data::Level(doc->get_root_node());
- return (level != NULL);
+ return (level != 0);
}
bool Instance::saveLevel(const Glib::ustring &file) {