~starius/wt-classes/1.4.1

« back to all changes in this revision

Viewing changes to src/Notify.hpp

  • Committer: Boris Nagaev
  • Date: 2012-10-16 22:01:56 UTC
  • Revision ID: bnagaev@gmail.com-20121016220156-qj7sewywbbsr6lfe
fix Notify: provide default noop implemntation for widget.notify()

If Widget's destructor was called during notify(),
then widget->notify() could be pure virtual call.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
    /** Notify.
93
93
    Implement this method for descendants: run updates caused by the event.
 
94
 
 
95
    Default implementation does nothing.
94
96
    */
95
 
    virtual void notify(EventPtr event) = 0;
 
97
    virtual void notify(EventPtr event);
96
98
 
97
99
    /** Return if this widget needs page updates.
98
100
    This method is called as a result of Server::emit(),