aboutsummaryrefslogtreecommitdiff
path: root/src/FocusableList.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/FocusableList.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/FocusableList.hh')
-rw-r--r--src/FocusableList.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FocusableList.hh b/src/FocusableList.hh
index 88bba44..bd70108 100644
--- a/src/FocusableList.hh
+++ b/src/FocusableList.hh
@@ -48,7 +48,7 @@ public:
48 STATIC_ORDER = 0x02 ///< use creation order instead of focused order 48 STATIC_ORDER = 0x02 ///< use creation order instead of focused order
49 }; 49 };
50 50
51 FocusableList(BScreen &scr): m_pat(0), m_parent(0), m_screen(scr) { } 51 FocusableList(BScreen &scr): m_parent(0), m_screen(scr) { }
52 FocusableList(BScreen &scr, const std::string & pat); 52 FocusableList(BScreen &scr, const std::string & pat);
53 FocusableList(BScreen &scr, const FocusableList &parent, 53 FocusableList(BScreen &scr, const FocusableList &parent,
54 const std::string & pat); 54 const std::string & pat);
@@ -102,7 +102,7 @@ private:
102 void windowUpdated(FluxboxWindow &fbwin); 102 void windowUpdated(FluxboxWindow &fbwin);
103 103
104 104
105 std::auto_ptr<ClientPattern> m_pat; 105 std::unique_ptr<ClientPattern> m_pat;
106 const FocusableList *m_parent; 106 const FocusableList *m_parent;
107 BScreen &m_screen; 107 BScreen &m_screen;
108 std::list<Focusable *> m_list; 108 std::list<Focusable *> m_list;