summaryrefslogtreecommitdiffstats
path: root/svtools/source/contnr/templwin.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-18 00:18:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-18 00:37:49 +0100
commit602c87b4259d118e5db6d8a990c4695103f916dd (patch)
tree1cbc6cf8309b680476f5116cd5320f8f6a99c32a /svtools/source/contnr/templwin.cxx
parent-Werror,-Wunused-variable (diff)
downloadcore-602c87b4259d118e5db6d8a990c4695103f916dd.tar.gz
core-602c87b4259d118e5db6d8a990c4695103f916dd.zip
Window::PreNotify should return bool
Change-Id: Ic9903fd887f2c3fab2630ebeb20df39392177c8d
Diffstat (limited to 'svtools/source/contnr/templwin.cxx')
-rw-r--r--svtools/source/contnr/templwin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx
index a57a15a76b21..955ae3d042f8 100644
--- a/svtools/source/contnr/templwin.cxx
+++ b/svtools/source/contnr/templwin.cxx
@@ -1108,10 +1108,10 @@ void SvtTemplateWindow::UpdateIcons()
// ------------------------------------------------------------------------
-long SvtTemplateWindow::PreNotify( NotifyEvent& rNEvt )
+bool SvtTemplateWindow::PreNotify( NotifyEvent& rNEvt )
{
sal_uInt16 nType = rNEvt.GetType();
- long nRet = 0;
+ bool nRet = false;
if ( EVENT_KEYINPUT == nType && rNEvt.GetKeyEvent() )
{
@@ -1121,15 +1121,15 @@ long SvtTemplateWindow::PreNotify( NotifyEvent& rNEvt )
if ( KEY_BACKSPACE == nCode && !rKeyCode.GetModifier() && pFileWin->HasChildPathFocus() )
{
DoAction( TI_DOCTEMPLATE_BACK );
- nRet = 1;
+ nRet = true;
}
else if ( pIconWin->ProcessKeyEvent( *rNEvt.GetKeyEvent() ) )
{
- nRet = 1;
+ nRet = true;
}
}
- return nRet ? nRet : Window::PreNotify( rNEvt );
+ return nRet || Window::PreNotify( rNEvt );
}
// -----------------------------------------------------------------------------