diff options
author | Mathias Gumz <akira@fluxbox.org> | 2016-08-27 08:05:34 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2016-08-28 17:49:30 (GMT) |
commit | bb013f5c75120df0f86a7a17cbae61bdca2618f4 (patch) | |
tree | 9d734ef939aa962976e7ee1eca57d75ce1720b71 /src/fluxbox.hh | |
parent | 1e235e3f01733e3282a76e6be8862206d1504bdf (diff) | |
download | fluxbox-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/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 86c3103..42739fb 100644 --- a/src/fluxbox.hh +++ b/src/fluxbox.hh | |||
@@ -229,7 +229,7 @@ private: | |||
229 | 229 | ||
230 | //--- Resources | 230 | //--- Resources |
231 | 231 | ||
232 | std::auto_ptr<FbAtoms> m_fbatoms; | 232 | std::unique_ptr<FbAtoms> m_fbatoms; |
233 | FbTk::ResourceManager m_resourcemanager; | 233 | FbTk::ResourceManager m_resourcemanager; |
234 | FbTk::ResourceManager& m_screen_rm; | 234 | FbTk::ResourceManager& m_screen_rm; |
235 | 235 | ||
@@ -260,7 +260,7 @@ private: | |||
260 | } m_config; | 260 | } m_config; |
261 | 261 | ||
262 | 262 | ||
263 | std::auto_ptr<Keys> m_key; | 263 | std::unique_ptr<Keys> m_key; |
264 | AtomHandlerContainer m_atomhandler; | 264 | AtomHandlerContainer m_atomhandler; |
265 | AttentionNoticeHandler m_attention_handler; | 265 | AttentionNoticeHandler m_attention_handler; |
266 | 266 | ||