diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 16:40:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 16:42:29 +0100 |
commit | 04683f14883f4cd64febadd71b327639f1e7edcc (patch) | |
tree | d1195eec7abc45fcf3b28776278f3856638a4a32 /dbaccess | |
parent | 734cf8395d745db73f52fd6d625d7deb77ba6d40 (diff) |
Window::Notify should return bool
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/app/AppDetailPageHelper.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/limitboxcontroller.cxx | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index 012096da1471..6c2777e45a23 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -130,15 +130,15 @@ namespace virtual void DataChanged(const DataChangedEvent& rDCEvt); public: OTablePreviewWindow( Window* pParent, WinBits nStyle = 0 ); - virtual long Notify( NotifyEvent& rNEvt ); + virtual bool Notify( NotifyEvent& rNEvt ); }; OTablePreviewWindow::OTablePreviewWindow(Window* pParent, WinBits nStyle) : Window( pParent, nStyle) { ImplInitSettings( sal_True, sal_True, sal_True ); } - long OTablePreviewWindow::Notify( NotifyEvent& rNEvt ) + bool OTablePreviewWindow::Notify( NotifyEvent& rNEvt ) { - long nRet = Window::Notify( rNEvt ); + bool nRet = Window::Notify( rNEvt ); if ( rNEvt.GetType() == EVENT_INPUTENABLE && IsInputEnabled() ) PostUserEvent( LINK( this, OTablePreviewWindow, OnDisableInput) ); return nRet; diff --git a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx index 67d20e03b381..3966b0362b02 100644 --- a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx +++ b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx @@ -34,7 +34,7 @@ class LimitBoxImpl: public LimitBox LimitBoxImpl( Window* pParent, LimitBoxController* pCtrl ); virtual ~LimitBoxImpl(); - virtual long Notify( NotifyEvent& rNEvt ); + virtual bool Notify( NotifyEvent& rNEvt ); private: LimitBoxController* m_pControl; @@ -50,9 +50,9 @@ LimitBoxImpl::~LimitBoxImpl() { } -long LimitBoxImpl::Notify( NotifyEvent& rNEvt ) +bool LimitBoxImpl::Notify( NotifyEvent& rNEvt ) { - long nHandled = 0; + bool nHandled = false; switch ( rNEvt.GetType() ) { case EVENT_LOSEFOCUS: @@ -76,7 +76,7 @@ long LimitBoxImpl::Notify( NotifyEvent& rNEvt ) case KEY_RETURN: { GrabFocusToDocument(); - nHandled = 1; + nHandled = true; break; } case KEY_TAB: @@ -88,7 +88,7 @@ long LimitBoxImpl::Notify( NotifyEvent& rNEvt ) break; } } - return nHandled ? nHandled : LimitBox::Notify( rNEvt ); + return nHandled || LimitBox::Notify( rNEvt ); } |