From 228e20b55dd1d53f6cf053bd00013f565492e78f Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 28 May 2013 21:47:56 +0000 Subject: Minor tidy up and localise --- project2/cgi/cgiAppEngine.cpp | 2 +- project2/cgi/cgiAppEngine.h | 1 - 2 files changed, 1 insertion(+), 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::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; -- cgit v1.2.3