aboutsummaryrefslogtreecommitdiff
path: root/src/CommandParser.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-22 12:16:38 (GMT)
committersimonb <simonb>2006-04-22 12:16:38 (GMT)
commitde4dfdad163abaff265adde0af4ff48e7424d7af (patch)
tree7c747ac158803e3d452b9570f0bbb70c279d851d /src/CommandParser.hh
parent1028f4cb51ea998f475ec9ffc61aac164d0ca793 (diff)
downloadfluxbox-de4dfdad163abaff265adde0af4ff48e7424d7af.zip
fluxbox-de4dfdad163abaff265adde0af4ff48e7424d7af.tar.bz2
fix static management of CommandParser, sf.net 1474444
Diffstat (limited to 'src/CommandParser.hh')
-rw-r--r--src/CommandParser.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CommandParser.hh b/src/CommandParser.hh
index 10f47aa..5501345 100644
--- a/src/CommandParser.hh
+++ b/src/CommandParser.hh
@@ -54,6 +54,8 @@ public:
54 /// @return parses and returns a command matching the line 54 /// @return parses and returns a command matching the line
55 FbTk::Command *parseLine(const std::string &line); 55 FbTk::Command *parseLine(const std::string &line);
56 56
57 CommandParser();
58
57 /// @return instance of command parser 59 /// @return instance of command parser
58 static CommandParser &instance(); 60 static CommandParser &instance();
59 /// @return map of factorys 61 /// @return map of factorys
@@ -71,7 +73,8 @@ private:
71 const std::string &arguments); 73 const std::string &arguments);
72 74
73 CommandFactoryMap m_commandfactorys; ///< a string to factory map 75 CommandFactoryMap m_commandfactorys; ///< a string to factory map
74 76
77 static CommandParser *s_singleton;
75}; 78};
76 79
77#endif // COMMANDPARSER_HH 80#endif // COMMANDPARSER_HH