diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 16:40:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 16:42:29 +0100 |
commit | 04683f14883f4cd64febadd71b327639f1e7edcc (patch) | |
tree | d1195eec7abc45fcf3b28776278f3856638a4a32 /forms | |
parent | 734cf8395d745db73f52fd6d625d7deb77ba6d40 (diff) |
Window::Notify should return bool
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/richtextvclcontrol.cxx | 6 | ||||
-rw-r--r-- | forms/source/richtext/richtextvclcontrol.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/richtext/richtextvclcontrol.cxx b/forms/source/richtext/richtextvclcontrol.cxx index c0e5828a83de..a145f62301d2 100644 --- a/forms/source/richtext/richtextvclcontrol.cxx +++ b/forms/source/richtext/richtextvclcontrol.cxx @@ -287,15 +287,15 @@ namespace frm } //-------------------------------------------------------------------- - long RichTextControl::Notify( NotifyEvent& _rNEvt ) + bool RichTextControl::Notify( NotifyEvent& _rNEvt ) { - long nDone = 0; + bool nDone = false; if ( _rNEvt.GetType() == EVENT_COMMAND ) { const CommandEvent& rEvent = *_rNEvt.GetCommandEvent(); nDone = m_pImpl->HandleCommand( rEvent ); } - return nDone ? nDone : Control::Notify( _rNEvt ); + return nDone || Control::Notify( _rNEvt ); } //-------------------------------------------------------------------- diff --git a/forms/source/richtext/richtextvclcontrol.hxx b/forms/source/richtext/richtextvclcontrol.hxx index dcbb3ee41b4b..35b59916560f 100644 --- a/forms/source/richtext/richtextvclcontrol.hxx +++ b/forms/source/richtext/richtextvclcontrol.hxx @@ -110,7 +110,7 @@ namespace frm virtual void GetFocus(); virtual void StateChanged( StateChangedType nStateChange ); virtual long PreNotify( NotifyEvent& _rNEvt ); - virtual long Notify( NotifyEvent& _rNEvt ); + virtual bool Notify( NotifyEvent& _rNEvt ); private: void applyAttributes( const SfxItemSet& _rAttributesToApply ); |