diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-13 20:04:24 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-13 20:04:24 (GMT) |
commit | deb6a1ebf43f458b720abbc6a7180e9a8e04771a (patch) | |
tree | ecff64e1eb70e43ff15b93de2f98953cfadd0067 /src/fluxbox.hh | |
parent | f6af17aa58701cdb579cca52ac83edf289e118e7 (diff) | |
download | fluxbox-deb6a1ebf43f458b720abbc6a7180e9a8e04771a.zip fluxbox-deb6a1ebf43f458b720abbc6a7180e9a8e04771a.tar.bz2 |
code simplification
we do not need a std::map just to store an attribute on an AtomHandler,
it makes housekeeping just more annoying.
Diffstat (limited to 'src/fluxbox.hh')
-rw-r--r-- | src/fluxbox.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fluxbox.hh b/src/fluxbox.hh index 6082b25..75b868f 100644 --- a/src/fluxbox.hh +++ b/src/fluxbox.hh | |||
@@ -106,7 +106,7 @@ public: | |||
106 | Time getLastTime() const { return m_last_time; } | 106 | Time getLastTime() const { return m_last_time; } |
107 | 107 | ||
108 | AtomHandler *getAtomHandler(const std::string &name); | 108 | AtomHandler *getAtomHandler(const std::string &name); |
109 | void addAtomHandler(AtomHandler *atomh, const std::string &name); | 109 | void addAtomHandler(AtomHandler *atomh); |
110 | void removeAtomHandler(AtomHandler *atomh); | 110 | void removeAtomHandler(AtomHandler *atomh); |
111 | 111 | ||
112 | /// obsolete | 112 | /// obsolete |
@@ -277,7 +277,7 @@ private: | |||
277 | //default arguments for titlebar left and right | 277 | //default arguments for titlebar left and right |
278 | static Fluxbox *s_singleton; | 278 | static Fluxbox *s_singleton; |
279 | 279 | ||
280 | typedef std::map<AtomHandler *, std::string> AtomHandlerContainer; | 280 | typedef std::set<AtomHandler *> AtomHandlerContainer; |
281 | typedef AtomHandlerContainer::iterator AtomHandlerContainerIt; | 281 | typedef AtomHandlerContainer::iterator AtomHandlerContainerIt; |
282 | 282 | ||
283 | AtomHandlerContainer m_atomhandler; | 283 | AtomHandlerContainer m_atomhandler; |