summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-17 16:40:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-17 16:42:29 +0100
commit04683f14883f4cd64febadd71b327639f1e7edcc (patch)
treed1195eec7abc45fcf3b28776278f3856638a4a32 /forms
parent734cf8395d745db73f52fd6d625d7deb77ba6d40 (diff)
Window::Notify should return bool
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
Diffstat (limited to 'forms')
-rw-r--r--forms/source/richtext/richtextvclcontrol.cxx6
-rw-r--r--forms/source/richtext/richtextvclcontrol.hxx2
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 );