diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-05-11 17:17:21 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-05-11 17:17:21 (GMT) |
commit | 72a45fae3c39323206e7d19913bb3ab17a691691 (patch) | |
tree | f920a884d39c8d5d161e0fa7a3c8a6296f7a3d71 /src/MenuCreator.hh | |
parent | 85d8ac754974aae0a513b585e4f1810007cb157c (diff) | |
download | fluxbox-72a45fae3c39323206e7d19913bb3ab17a691691.zip fluxbox-72a45fae3c39323206e7d19913bb3ab17a691691.tar.bz2 |
reuse some menu pointers instead of using delete/new
Diffstat (limited to 'src/MenuCreator.hh')
-rw-r--r-- | src/MenuCreator.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MenuCreator.hh b/src/MenuCreator.hh index 4494dc7..660d097 100644 --- a/src/MenuCreator.hh +++ b/src/MenuCreator.hh | |||
@@ -36,9 +36,9 @@ class FluxboxWindow; | |||
36 | class MenuCreator { | 36 | class MenuCreator { |
37 | public: | 37 | public: |
38 | static FbTk::Menu *createMenu(const std::string &label, int screen_num); | 38 | static FbTk::Menu *createMenu(const std::string &label, int screen_num); |
39 | static FbTk::Menu *createFromFile(const std::string &filename, int screen_num); | ||
40 | static FbTk::Menu *createMenuType(const std::string &label, int screen_num); | 39 | static FbTk::Menu *createMenuType(const std::string &label, int screen_num); |
41 | static bool createFromFile(const std::string &filename, FbTk::Menu &inject_into); | 40 | static bool createFromFile(const std::string &filename, |
41 | FbTk::Menu &inject_into, bool begin = true); | ||
42 | static bool createWindowMenuFromFile(const std::string &filename, FbTk::Menu &inject_into); | 42 | static bool createWindowMenuFromFile(const std::string &filename, FbTk::Menu &inject_into); |
43 | static bool createWindowMenuItem(const std::string &type, const std::string &label, | 43 | static bool createWindowMenuItem(const std::string &type, const std::string &label, |
44 | FbTk::Menu &inject_into); | 44 | FbTk::Menu &inject_into); |