From 9c24bd0bb259124e36367c9c8a62af7b19ba8e67 Mon Sep 17 00:00:00 2001 From: neoraider Date: Mon, 14 Apr 2008 09:19:00 +0000 Subject: zoomedit: * Use 0 instead of NULL consistantly --- src/Instance.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Instance.cpp') 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) { -- cgit v1.2.3