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/ToolFactory.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/ToolFactory.hh')
-rw-r--r-- | src/ToolFactory.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ToolFactory.hh b/src/ToolFactory.hh index 7550f48..e9490c5 100644 --- a/src/ToolFactory.hh +++ b/src/ToolFactory.hh | |||
@@ -52,9 +52,9 @@ public: | |||
52 | private: | 52 | private: |
53 | BScreen &m_screen; | 53 | BScreen &m_screen; |
54 | ToolTheme m_clock_theme; | 54 | ToolTheme m_clock_theme; |
55 | std::auto_ptr<ToolTheme> m_button_theme; | 55 | std::unique_ptr<ToolTheme> m_button_theme; |
56 | std::auto_ptr<ToolTheme> m_workspace_theme; | 56 | std::unique_ptr<ToolTheme> m_workspace_theme; |
57 | std::auto_ptr<ToolTheme> m_systray_theme; | 57 | std::unique_ptr<ToolTheme> m_systray_theme; |
58 | IconbarTheme m_iconbar_theme, m_focused_iconbar_theme, | 58 | IconbarTheme m_iconbar_theme, m_focused_iconbar_theme, |
59 | m_unfocused_iconbar_theme; | 59 | m_unfocused_iconbar_theme; |
60 | }; | 60 | }; |