mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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.
This commit is contained in:
parent
2faa256a55
commit
948380ce96
1 changed files with 2 additions and 3 deletions
|
@ -50,6 +50,8 @@
|
|||
#include <ncurses.h>
|
||||
#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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue