aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2016-08-27 08:05:34 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-08-28 17:49:30 (GMT)
commitbb013f5c75120df0f86a7a17cbae61bdca2618f4 (patch)
tree9d734ef939aa962976e7ee1eca57d75ce1720b71 /src/FbCommands.hh
parent1e235e3f01733e3282a76e6be8862206d1504bdf (diff)
downloadfluxbox-bb013f5c75120df0f86a7a17cbae61bdca2618f4.zip
fluxbox-bb013f5c75120df0f86a7a17cbae61bdca2618f4.tar.bz2
fix compiler warning about std::auto_ptr
fluxbox uses std::unique_ptr<> where it previously used std::auto_ptr<>. C++0X was approved in 2011. among other things, it deprecates std::auto_ptr. 5 years is long enough for compilers to catch up the standard.
Diffstat (limited to 'src/FbCommands.hh')
-rw-r--r--src/FbCommands.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbCommands.hh b/src/FbCommands.hh
index d9639ad..4470bb3 100644
--- a/src/FbCommands.hh
+++ b/src/FbCommands.hh
@@ -127,7 +127,7 @@ private:
127 const int m_option; 127 const int m_option;
128 const ClientPattern m_pat; 128 const ClientPattern m_pat;
129 std::list<FluxboxWindow *> m_list; 129 std::list<FluxboxWindow *> m_list;
130 std::auto_ptr<ClientMenu> m_menu; 130 std::unique_ptr<ClientMenu> m_menu;
131}; 131};
132 132
133class ShowCustomMenuCmd: public FbTk::Command<void> { 133class ShowCustomMenuCmd: public FbTk::Command<void> {
@@ -137,7 +137,7 @@ public:
137 void reload(); 137 void reload();
138private: 138private:
139 std::string custom_menu_file; 139 std::string custom_menu_file;
140 std::auto_ptr<FbMenu> m_menu; 140 std::unique_ptr<FbMenu> m_menu;
141}; 141};
142 142
143class ShowRootMenuCmd: public FbTk::Command<void> { 143class ShowRootMenuCmd: public FbTk::Command<void> {