diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 18:38:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 18:45:17 +0100 |
commit | 00d0a50e3b34e4f93ea2cb201db6e08714b63913 (patch) | |
tree | 2368dd982844e632deb1f442bdfdee7f830f248c /sd/source | |
parent | ed1878d27e4fd0a81d37c2f092f300a23748f59b (diff) |
Window::Notify should return bool, redux
Change-Id: Ib41ed9ace428081e1948cf109de095ea9e7c45c2
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/inc/ViewShell.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/viewshel.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/inc/ViewShell.hxx b/sd/source/ui/inc/ViewShell.hxx index d2ef6067ee8f..7fab33cda0c5 100644 --- a/sd/source/ui/inc/ViewShell.hxx +++ b/sd/source/ui/inc/ViewShell.hxx @@ -185,7 +185,7 @@ public: virtual void MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin); virtual void Command(const CommandEvent& rCEvt, ::sd::Window* pWin); virtual sal_Bool RequestHelp( const HelpEvent& rEvt, ::sd::Window* pWin ); - virtual long Notify( NotifyEvent& rNEvt, ::sd::Window* pWin ); + virtual bool Notify( NotifyEvent& rNEvt, ::sd::Window* pWin ); virtual bool HandleScrollCommand(const CommandEvent& rCEvt, ::sd::Window* pWin); diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index d0b7a54445ea..6b19b91e4465 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -623,10 +623,10 @@ void ViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) } } -long ViewShell::Notify(NotifyEvent& rNEvt, ::sd::Window* pWin) +bool ViewShell::Notify(NotifyEvent& rNEvt, ::sd::Window* pWin) { // handle scroll commands when they arrived at child windows - long nRet = sal_False; + bool nRet = false; if( rNEvt.GetType() == EVENT_COMMAND ) { // note: dynamic_cast is not possible as GetData() returns a void* |