diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-18 00:18:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-18 00:37:49 +0100 |
commit | 602c87b4259d118e5db6d8a990c4695103f916dd (patch) | |
tree | 1cbc6cf8309b680476f5116cd5320f8f6a99c32a /vcl/source/edit/vclmedit.cxx | |
parent | 849482c0ea88c4aa70ec56adfefe7e59b6060950 (diff) |
Window::PreNotify should return bool
Change-Id: Ic9903fd887f2c3fab2630ebeb20df39392177c8d
Diffstat (limited to 'vcl/source/edit/vclmedit.cxx')
-rw-r--r-- | vcl/source/edit/vclmedit.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx index c62f03732c7c..c429160557a3 100644 --- a/vcl/source/edit/vclmedit.cxx +++ b/vcl/source/edit/vclmedit.cxx @@ -1410,9 +1410,9 @@ bool VclMultiLineEdit::Notify( NotifyEvent& rNEvt ) return nDone || Edit::Notify( rNEvt ); } -long VclMultiLineEdit::PreNotify( NotifyEvent& rNEvt ) +bool VclMultiLineEdit::PreNotify( NotifyEvent& rNEvt ) { - long nDone = 0; + bool nDone = false; #if (OSL_DEBUG_LEVEL > 1) && defined(DBG_UTIL) if( rNEvt.GetType() == EVENT_KEYINPUT ) @@ -1430,7 +1430,7 @@ long VclMultiLineEdit::PreNotify( NotifyEvent& rNEvt ) const KeyEvent& rKEvent = *rNEvt.GetKeyEvent(); if ( !rKEvent.GetKeyCode().IsShift() && ( rKEvent.GetKeyCode().GetGroup() == KEYGROUP_CURSOR ) ) { - nDone = 1; + nDone = true; TextSelection aSel = pImpVclMEdit->GetTextWindow()->GetTextView()->GetSelection(); if ( aSel.HasRange() ) { @@ -1493,14 +1493,14 @@ long VclMultiLineEdit::PreNotify( NotifyEvent& rNEvt ) break; default: { - nDone = 0; + nDone = false; } } } } } - return nDone ? nDone : Edit::PreNotify( rNEvt ); + return nDone || Edit::PreNotify( rNEvt ); } // |