summaryrefslogtreecommitdiff
path: root/project2/common/checkHost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/checkHost.cpp')
-rw-r--r--project2/common/checkHost.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/project2/common/checkHost.cpp b/project2/common/checkHost.cpp
index 49533a9..dedea85 100644
--- a/project2/common/checkHost.cpp
+++ b/project2/common/checkHost.cpp
@@ -1,6 +1,6 @@
#include <pch.hpp>
#include "checkHost.h"
-#include "appEngine.h"
+#include "execContext.h"
#include <boost/foreach.hpp>
CheckHost::CheckHost(ScriptNodePtr s) :
@@ -14,12 +14,12 @@ CheckHost::~CheckHost()
}
void
-CheckHost::runChecks() const
+CheckHost::runChecks(ExecContext * ec) const
{
loadScriptComponents();
BOOST_FOREACH(const Checks::value_type & pc, checks) {
- if (!pc->performCheck()) {
- ApplicationEngine::getCurrent()->logMessage(false, pc->group(), pc->message());
+ if (!pc->performCheck(ec)) {
+ ec->logMessage(false, pc->group(ec), pc->message(ec));
throw CheckFailure(pc);
}
}