summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-05-28 21:47:56 +0000
committerrandomdan <randomdan@localhost>2013-05-28 21:47:56 +0000
commita36d2dac9f3a2f8c5d1aaf19f869eaa56ea643d2 (patch)
tree92788cd164c7d8dfea0613f7ded8000460f6bc61
parentDon't precache variable conversion as it causes some currently inexplicable p... (diff)
downloadproject2-a36d2dac9f3a2f8c5d1aaf19f869eaa56ea643d2.tar.bz2
project2-a36d2dac9f3a2f8c5d1aaf19f869eaa56ea643d2.tar.xz
project2-a36d2dac9f3a2f8c5d1aaf19f869eaa56ea643d2.zip
Minor tidy up and localise
-rw-r--r--project2/cgi/cgiAppEngine.cpp2
-rw-r--r--project2/cgi/cgiAppEngine.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/project2/cgi/cgiAppEngine.cpp b/project2/cgi/cgiAppEngine.cpp
index d8871ca..799196d 100644
--- a/project2/cgi/cgiAppEngine.cpp
+++ b/project2/cgi/cgiAppEngine.cpp
@@ -29,7 +29,6 @@ CgiApplicationEngine::CgiApplicationEngine(const CgiEnvironment * e, std::ostrea
catch (const NoSuchCookie &) {
cursession = sessionsContainer->GetSession(UUID());
}
- currentStage = NextStage(new InitialStage());
}
CgiApplicationEngine::~CgiApplicationEngine()
@@ -65,6 +64,7 @@ CgiApplicationEngine::process() const
startTime = boost::date_time::microsec_clock<boost::posix_time::ptime>::universal_time();
bool triedNotFound = false;
bool triedOnError = false;
+ NextStage currentStage = NextStage(new InitialStage());
do {
try {
currentStage = currentStage.get<0>()->run();
diff --git a/project2/cgi/cgiAppEngine.h b/project2/cgi/cgiAppEngine.h
index 50c9a7f..69767be 100644
--- a/project2/cgi/cgiAppEngine.h
+++ b/project2/cgi/cgiAppEngine.h
@@ -163,7 +163,6 @@ class CgiApplicationEngine : public ApplicationEngine, public TransformChainLink
};
private:
- mutable NextStage currentStage;
SessionPtr cursession;
std::ostream & IO;
mutable bool outputCachingActive;