aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenPlacement.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/ScreenPlacement.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/ScreenPlacement.hh')
-rw-r--r--src/ScreenPlacement.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ScreenPlacement.hh b/src/ScreenPlacement.hh
index 05db90d..ceec2d2 100644
--- a/src/ScreenPlacement.hh
+++ b/src/ScreenPlacement.hh
@@ -80,8 +80,8 @@ private:
80 FbTk::Resource<ColumnDirection> m_col_direction; ///< column direction resource 80 FbTk::Resource<ColumnDirection> m_col_direction; ///< column direction resource
81 FbTk::Resource<PlacementPolicy> m_placement_policy; ///< placement policy resource 81 FbTk::Resource<PlacementPolicy> m_placement_policy; ///< placement policy resource
82 PlacementPolicy m_old_policy; ///< holds old policy, used to determine if resources has changed 82 PlacementPolicy m_old_policy; ///< holds old policy, used to determine if resources has changed
83 std::auto_ptr<PlacementStrategy> m_strategy; ///< main strategy 83 std::unique_ptr<PlacementStrategy> m_strategy; ///< main strategy
84 std::auto_ptr<PlacementStrategy> m_fallback_strategy; ///< a fallback strategy if the main strategy fails 84 std::unique_ptr<PlacementStrategy> m_fallback_strategy; ///< a fallback strategy if the main strategy fails
85 BScreen& m_screen; 85 BScreen& m_screen;
86}; 86};
87 87