From 451ea7e5b853db9a20ee93e28e3e5a11caf0bf73 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 24 Nov 2002 20:57:32 +0000 Subject: auto_ptr for slit variable --- src/Screen.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Screen.hh b/src/Screen.hh index 2855e1b..a2996b5 100644 --- a/src/Screen.hh +++ b/src/Screen.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.hh,v 1.49 2002/11/16 22:13:19 fluxgen Exp $ +// $Id: Screen.hh,v 1.50 2002/11/24 20:57:32 fluxgen Exp $ #ifndef SCREEN_HH #define SCREEN_HH @@ -109,8 +109,8 @@ public: #ifdef SLIT inline bool isSlitOnTop() const { return resource.slit_on_top; } inline bool doSlitAutoHide() const { return resource.slit_auto_hide; } - inline Slit *getSlit() { return slit; } - inline const Slit *getSlit() const { return slit; } + inline Slit *getSlit() { return m_slit.get(); } + inline const Slit *getSlit() const { return m_slit.get(); } inline int getSlitPlacement() const { return resource.slit_placement; } inline int getSlitDirection() const { return resource.slit_direction; } inline void saveSlitPlacement(int p) { resource.slit_placement = p; } @@ -332,7 +332,7 @@ private: Icons iconList; #ifdef SLIT - Slit *slit; + std::auto_ptr m_slit; #endif // SLIT std::auto_ptr m_toolbar; -- cgit v0.11.2