summaryrefslogtreecommitdiffstats
path: root/src/Instance.cpp
diff options
context:
space:
mode:
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) {