diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-24 10:49:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-24 10:51:22 +0200 |
commit | 858e455634ebfff8ef7b65a9c97d3bc8240cd094 (patch) | |
tree | 688dd5dbe73ee53ef4b84124632e045045b404d1 /desktop | |
parent | a6df3c0babf409d8fc0bf52efd9c2fa74a95998e (diff) |
loplugin:constantfunction: various
Change-Id: I6eddda9f4b31c7ce413c328b6a857a81bd222eed
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/dispatchwatcher.cxx | 5 | ||||
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_extlistbox.cxx | 8 |
2 files changed, 5 insertions, 8 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index c24376664b6b..d1aa2f2a796f 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -126,7 +126,9 @@ const SfxFilter* impl_lookupExportFilterForUrl( const rtl::OUString& rUrl, const return pBestMatch; } -const SfxFilter* impl_getExportFilterFromUrl( const rtl::OUString& rUrl, const rtl::OUString& rFactory ) try +const SfxFilter* impl_getExportFilterFromUrl( const rtl::OUString& rUrl, const rtl::OUString& rFactory ) +{ +try { const Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() ); const Reference< document::XTypeDetection > xTypeDetector( @@ -154,6 +156,7 @@ catch ( const Exception& ) { return 0; } +} OUString impl_GuessFilter( const OUString& rUrlOut, const OUString& rDocService ) { diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx index ec2dea626a5f..11580877ea20 100644 --- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx +++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx @@ -703,12 +703,6 @@ void ExtensionBox_Impl::RecalcAll() } -bool ExtensionBox_Impl::HandleTabKey( bool ) -{ - return false; -} - - bool ExtensionBox_Impl::HandleCursorKey( sal_uInt16 nKeyCode ) { if ( m_vEntries.empty() ) @@ -886,7 +880,7 @@ bool ExtensionBox_Impl::Notify( NotifyEvent& rNEvt ) sal_uInt16 nKeyCode = aKeyCode.GetCode(); if ( nKeyCode == KEY_TAB ) - bHandled = HandleTabKey( aKeyCode.IsShift() ); + ; else if ( aKeyCode.GetGroup() == KEYGROUP_CURSOR ) bHandled = HandleCursorKey( nKeyCode ); } |