From 9f6621a599688ec87d0fe3d758a57d2aea4e730e Mon Sep 17 00:00:00 2001 From: fluxgen <fluxgen> Date: Fri, 9 Jan 2004 02:06:55 +0000 Subject: init m_update --- src/AtomHandler.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AtomHandler.hh b/src/AtomHandler.hh index 45b7914..bec1815 100644 --- a/src/AtomHandler.hh +++ b/src/AtomHandler.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: AtomHandler.hh,v 1.12 2003/07/28 15:06:33 rathnor Exp $ +// $Id: AtomHandler.hh,v 1.13 2004/01/09 02:06:55 fluxgen Exp $ #ifndef ATOMHANDLER_HH #define ATOMHANDLER_HH @@ -32,6 +32,7 @@ class BScreen; class AtomHandler { public: + virtual ~AtomHandler() { } virtual void initForScreen(BScreen &screen) = 0; @@ -58,6 +59,8 @@ public: /// should this object be updated or not? bool update() const { return m_update; } protected: + AtomHandler():m_update(true) { } + void disableUpdate() { m_update = false; } void enableUpdate() { m_update = true; } private: -- cgit v0.11.2