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
commit228e20b55dd1d53f6cf053bd00013f565492e78f (patch)
tree92788cd164c7d8dfea0613f7ded8000460f6bc61
parentDon't precache variable conversion as it causes some currently inexplicable p... (diff)
downloadproject2-228e20b55dd1d53f6cf053bd00013f565492e78f.tar.bz2
project2-228e20b55dd1d53f6cf053bd00013f565492e78f.tar.xz
project2-228e20b55dd1d53f6cf053bd00013f565492e78f.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;