summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-07-09 14:35:22 +0000
committerrandomdan <randomdan@localhost>2013-07-09 14:35:22 +0000
commit3f6a1a53848856163304fd00923e043ff5a0e20b (patch)
treeab7b6fb8f87581eee182dd34c8b2f8e781fab81f
parentRemove gcc-4.7 requirement (diff)
downloadproject2-3f6a1a53848856163304fd00923e043ff5a0e20b.tar.bz2
project2-3f6a1a53848856163304fd00923e043ff5a0e20b.tar.xz
project2-3f6a1a53848856163304fd00923e043ff5a0e20b.zip
Boost 1.53 compat fix
-rw-r--r--project2/common/scriptStorage.h2
-rw-r--r--project2/common/transform.cpp2
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<X>) = 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;