From 3f6a1a53848856163304fd00923e043ff5a0e20b Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 9 Jul 2013 14:35:22 +0000 Subject: Boost 1.53 compat fix --- project2/common/scriptStorage.h | 2 +- project2/common/transform.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project2/common/scriptStorage.h b/project2/common/scriptStorage.h index c8b441d..8c37a65 100644 --- a/project2/common/scriptStorage.h +++ b/project2/common/scriptStorage.h @@ -62,7 +62,7 @@ class StorerBase : public Storer { throw StoreFailed(name->get_name()); } } - return O; + return (O != NULL); } virtual bool insert(boost::intrusive_ptr) = 0; private: diff --git a/project2/common/transform.cpp b/project2/common/transform.cpp index efe9bf6..def1060 100644 --- a/project2/common/transform.cpp +++ b/project2/common/transform.cpp @@ -21,7 +21,7 @@ class TransformTargetStorer : public Storer { if (O) { transformSource->addTarget(O, NULL, s); } - return O; + return (O != NULL); } private: TransformSource * transformSource; -- cgit v1.2.3