summaryrefslogtreecommitdiff
path: root/project2/regexCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/regexCheck.cpp')
-rw-r--r--project2/regexCheck.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/regexCheck.cpp b/project2/regexCheck.cpp
index 672194f..d6e1bb0 100644
--- a/project2/regexCheck.cpp
+++ b/project2/regexCheck.cpp
@@ -6,6 +6,7 @@
_RegexCheck::_RegexCheck(const xmlpp::Element * p) :
_SourceObject(p),
_ParamChecker(p),
+ applyTo(p->get_attribute("apply-to")),
regex(xmlChildText(p, "regex").raw())
{
}
@@ -17,7 +18,7 @@ _RegexCheck::~_RegexCheck()
bool
_RegexCheck::performCheck(const ApplicationEngine * ep) const
{
- const Glib::ustring & param = ep->env()->getParamQuery(applyTo);
+ const Glib::ustring & param(applyTo);
return boost::regex_match(param.begin(), param.end(), regex);
}