From 948380ce96ff1f5f2941f5d53b06389f594b31ec Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 2 Jun 2009 22:26:02 -0400 Subject: [PATCH] Enhancement - Context - Context is now a global variable, otherwise it will end up being passed to every function, which is essentially the same as global, and will create a horrible coupling problem. --- src/task.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/task.cpp b/src/task.cpp index 65d1f7fb2..0981503ef 100644 --- a/src/task.cpp +++ b/src/task.cpp @@ -50,6 +50,8 @@ #include #endif +Context context; + //////////////////////////////////////////////////////////////////////////////// static std::string shortUsage (Config& conf) { @@ -317,9 +319,6 @@ int main (int argc, char** argv) srand (time (NULL)); #endif - // TODO 1.8.0 requires the Context. - Context context; - try { context.initialize (argc, argv);