all repos — fluxbox @ 451ea7e5b853db9a20ee93e28e3e5a11caf0bf73

custom fork of the fluxbox windowmanager

auto_ptr for slit variable
fluxgen fluxgen
commit

451ea7e5b853db9a20ee93e28e3e5a11caf0bf73

parent

fafc0a6e49c3d4c31f05191313266bb0bbf86377

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/Screen.hhsrc/Screen.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ inline const std::string &getRootCommand() const { return *resource.rootcommand; }

#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 @@ Netizens netizenList;

Icons iconList; #ifdef SLIT - Slit *slit; + std::auto_ptr<Slit> m_slit; #endif // SLIT std::auto_ptr<Toolbar> m_toolbar;