summaryrefslogtreecommitdiff
path: root/project2/common/cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/cache.cpp')
-rw-r--r--project2/common/cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/common/cache.cpp b/project2/common/cache.cpp
index 7ad4053..f5edc43 100644
--- a/project2/common/cache.cpp
+++ b/project2/common/cache.cpp
@@ -5,10 +5,10 @@
#include "logger.h"
#include <boost/foreach.hpp>
-Cache::Cache(const xmlpp::Element * p) :
+Cache::Cache(ScriptNodePtr p) :
IHaveParameters(p),
SourceObject(p),
- inherit(p->get_attribute_value("inherit") != "false")
+ inherit(p->value("inherit", true).as<bool>())
{
}