From 04683f14883f4cd64febadd71b327639f1e7edcc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 17 Jan 2014 16:40:50 +0100 Subject: Window::Notify should return bool Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe --- forms/source/richtext/richtextvclcontrol.cxx | 6 +++--- forms/source/richtext/richtextvclcontrol.hxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'forms') 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 ); -- cgit