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 /fpicker | |
parent | 734cf8395d745db73f52fd6d625d7deb77ba6d40 (diff) |
Window::Notify should return bool
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 10 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.hxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 0e5b4679d2a9..63aa4a46b5fe 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -1710,7 +1710,7 @@ IMPL_LINK_NOARG(SvtFileDialog, PlayButtonHdl_Impl) //***************************************************************************** -long SvtFileDialog::Notify( NotifyEvent& rNEvt ) +bool SvtFileDialog::Notify( NotifyEvent& rNEvt ) /* [Description] @@ -1719,7 +1719,7 @@ long SvtFileDialog::Notify( NotifyEvent& rNEvt ) { sal_uInt16 nType = rNEvt.GetType(); - long nRet = 0; + long nRet = false; if ( EVENT_KEYINPUT == nType && rNEvt.GetKeyEvent() ) { @@ -1729,16 +1729,16 @@ long SvtFileDialog::Notify( NotifyEvent& rNEvt ) if ( !rKeyCode.GetModifier() && KEY_BACKSPACE == nCode && !_pImp->_pEdFileName->HasChildPathFocus() ) { - nRet = 0; + nRet = false; if ( !nRet && _pImp->_pBtnUp->IsEnabled() ) { PrevLevel_Impl(); - nRet = 1; + nRet = true; } } } - return nRet ? nRet : ModalDialog::Notify( rNEvt ); + return nRet || ModalDialog::Notify( rNEvt ); } //***************************************************************************** diff --git a/fpicker/source/office/iodlg.hxx b/fpicker/source/office/iodlg.hxx index 0126e17195ff..41ffff391074 100644 --- a/fpicker/source/office/iodlg.hxx +++ b/fpicker/source/office/iodlg.hxx @@ -165,7 +165,7 @@ private: void implUpdateImages( ); protected: - virtual long Notify( NotifyEvent& rNEvt ); + virtual bool Notify( NotifyEvent& rNEvt ); void EnableInternet( sal_Bool bInternet ); // originally from VclFileDialog |