summaryrefslogtreecommitdiff
path: root/framework/source/uielement
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-14 00:03:52 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-14 01:31:17 +0900
commit520891d058f9e936b9b8afb490b5a26c156008ef (patch)
tree6cb8ebad42c3504cb3e26249ba3458afb02a9922 /framework/source/uielement
parent4c1c531435e1bdb151d45626648486062012cbaa (diff)
catch exception by constant reference
Diffstat (limited to 'framework/source/uielement')
-rw-r--r--framework/source/uielement/addonstoolbarmanager.cxx8
-rw-r--r--framework/source/uielement/addonstoolbarwrapper.cxx2
-rw-r--r--framework/source/uielement/buttontoolbarcontroller.cxx2
-rw-r--r--framework/source/uielement/complextoolbarcontroller.cxx4
-rw-r--r--framework/source/uielement/generictoolbarcontroller.cxx4
-rw-r--r--framework/source/uielement/headermenucontroller.cxx2
-rw-r--r--framework/source/uielement/macrosmenucontroller.cxx2
-rw-r--r--framework/source/uielement/menubarmanager.cxx26
-rw-r--r--framework/source/uielement/menubarwrapper.cxx6
-rw-r--r--framework/source/uielement/newmenucontroller.cxx6
-rw-r--r--framework/source/uielement/popupmenucontroller.cxx2
-rw-r--r--framework/source/uielement/progressbarwrapper.cxx4
-rw-r--r--framework/source/uielement/recentfilesmenucontroller.cxx2
-rw-r--r--framework/source/uielement/statusbarmanager.cxx8
-rw-r--r--framework/source/uielement/statusbarwrapper.cxx4
-rw-r--r--framework/source/uielement/toolbarsmenucontroller.cxx24
-rw-r--r--framework/source/uielement/toolbarwrapper.cxx4
17 files changed, 55 insertions, 55 deletions
diff --git a/framework/source/uielement/addonstoolbarmanager.cxx b/framework/source/uielement/addonstoolbarmanager.cxx
index facbf5bf5ddd..5d136aaec714 100644
--- a/framework/source/uielement/addonstoolbarmanager.cxx
+++ b/framework/source/uielement/addonstoolbarmanager.cxx
@@ -242,7 +242,7 @@ void AddonsToolBarManager::FillToolbar( const Sequence< Sequence< PropertyValue
m_xServiceManager->createInstance( SERVICENAME_MODULEMANAGER ), UNO_QUERY_THROW );
aModuleIdentifier = xModuleManager->identify( m_xFrame );
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
@@ -341,7 +341,7 @@ void AddonsToolBarManager::FillToolbar( const Sequence< Sequence< PropertyValue
aURL, aArgs, xComponentContext ),
UNO_QUERY );
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
}
bMustBeInit = sal_False; // factory called init already!
@@ -376,7 +376,7 @@ void AddonsToolBarManager::FillToolbar( const Sequence< Sequence< PropertyValue
{
xInit->initialize( aArgs );
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
}
}
@@ -407,7 +407,7 @@ void AddonsToolBarManager::FillToolbar( const Sequence< Sequence< PropertyValue
{
xUpdatable->update();
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
}
}
diff --git a/framework/source/uielement/addonstoolbarwrapper.cxx b/framework/source/uielement/addonstoolbarwrapper.cxx
index 5df537b26a8a..ed6d016f30f6 100644
--- a/framework/source/uielement/addonstoolbarwrapper.cxx
+++ b/framework/source/uielement/addonstoolbarwrapper.cxx
@@ -162,7 +162,7 @@ void SAL_CALL AddonsToolBarWrapper::initialize( const Sequence< Any >& aArgument
pToolBar->SetSizePixel( aSize );
}
}
- catch ( NoSuchElementException& )
+ catch ( const NoSuchElementException& )
{
}
}
diff --git a/framework/source/uielement/buttontoolbarcontroller.cxx b/framework/source/uielement/buttontoolbarcontroller.cxx
index 4bedf0cf2884..554a9e75ab03 100644
--- a/framework/source/uielement/buttontoolbarcontroller.cxx
+++ b/framework/source/uielement/buttontoolbarcontroller.cxx
@@ -280,7 +280,7 @@ throw (::com::sun::star::uno::RuntimeException)
xDispatch->dispatch( aTargetURL, aArgs );
}
- catch ( DisposedException& )
+ catch ( const DisposedException& )
{
}
}
diff --git a/framework/source/uielement/complextoolbarcontroller.cxx b/framework/source/uielement/complextoolbarcontroller.cxx
index 6d088b1a3b62..94b398694b2b 100644
--- a/framework/source/uielement/complextoolbarcontroller.cxx
+++ b/framework/source/uielement/complextoolbarcontroller.cxx
@@ -239,7 +239,7 @@ IMPL_STATIC_LINK_NOINSTANCE( ComplexToolbarController, ExecuteHdl_Impl, ExecuteI
// elements if a component gets detached from its frame!
pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs );
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
@@ -264,7 +264,7 @@ IMPL_STATIC_LINK_NOINSTANCE( ComplexToolbarController, Notify_Impl, NotifyInfo*,
aEvent.aInformation = pNotifyInfo->aInfoSeq;
pNotifyInfo->xNotifyListener->controlEvent( aEvent );
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
diff --git a/framework/source/uielement/generictoolbarcontroller.cxx b/framework/source/uielement/generictoolbarcontroller.cxx
index 7e6c566e0c71..08db404d63c4 100644
--- a/framework/source/uielement/generictoolbarcontroller.cxx
+++ b/framework/source/uielement/generictoolbarcontroller.cxx
@@ -307,7 +307,7 @@ IMPL_STATIC_LINK_NOINSTANCE( GenericToolbarController, ExecuteHdl_Impl, ExecuteI
// elements if a component gets detached from its frame!
pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs );
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
@@ -327,7 +327,7 @@ MenuToolbarController::~MenuToolbarController()
if ( m_xMenuManager.is() )
m_xMenuManager->dispose();
}
- catch( Exception& ) {}
+ catch( const Exception& ) {}
if ( pMenu )
{
delete pMenu;
diff --git a/framework/source/uielement/headermenucontroller.cxx b/framework/source/uielement/headermenucontroller.cxx
index dabce89c3f58..e262a2c0276b 100644
--- a/framework/source/uielement/headermenucontroller.cxx
+++ b/framework/source/uielement/headermenucontroller.cxx
@@ -202,7 +202,7 @@ void HeaderMenuController::fillPopupMenu( const Reference< ::com::sun::star::fra
}
}
}
- catch ( com::sun::star::container::NoSuchElementException& )
+ catch ( const com::sun::star::container::NoSuchElementException& )
{
}
}
diff --git a/framework/source/uielement/macrosmenucontroller.cxx b/framework/source/uielement/macrosmenucontroller.cxx
index 30eaa8f5cd58..7da9718a2b5d 100644
--- a/framework/source/uielement/macrosmenucontroller.cxx
+++ b/framework/source/uielement/macrosmenucontroller.cxx
@@ -160,7 +160,7 @@ IMPL_STATIC_LINK_NOINSTANCE( MacrosMenuController, ExecuteHdl_Impl, ExecuteInfo*
// elements if a component gets detached from its frame!
pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs );
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
delete pExecuteInfo;
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index 28c29dab5800..1ce47762af32 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -389,7 +389,7 @@ void SAL_CALL MenuBarManager::dispose() throw( RuntimeException )
Reference< XUIConfigurationListener >(
static_cast< OWeakObject* >( this ), UNO_QUERY ));
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -401,7 +401,7 @@ void SAL_CALL MenuBarManager::dispose() throw( RuntimeException )
Reference< XUIConfigurationListener >(
static_cast< OWeakObject* >( this ), UNO_QUERY ));
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -676,11 +676,11 @@ void MenuBarManager::RemoveListener()
if ( xComponent.is() )
xComponent->dispose();
}
- catch ( RuntimeException& )
+ catch ( const RuntimeException& )
{
throw;
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
@@ -701,7 +701,7 @@ void MenuBarManager::RemoveListener()
m_xFrame->removeFrameActionListener( Reference< XFrameActionListener >(
static_cast< OWeakObject* >( this ), UNO_QUERY ));
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
@@ -999,7 +999,7 @@ IMPL_LINK( MenuBarManager, Activate, Menu *, pMenu )
pMenuItemHandler->xMenuItemDispatch->removeStatusListener(
static_cast< XStatusListener* >( this ), aTargetURL );
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -1513,7 +1513,7 @@ void MenuBarManager::impl_RetrieveShortcutsFromConfiguration(
aMenuShortCuts[i]->aKeyCode = svt::AcceleratorExecute::st_AWTKey2VCLKey( aKeyEvent );
}
}
- catch ( IllegalArgumentException& )
+ catch ( const IllegalArgumentException& )
{
}
}
@@ -1532,7 +1532,7 @@ void MenuBarManager::RetrieveShortcuts( std::vector< MenuItemHandler* >& aMenuSh
{
m_aModuleIdentifier = xModuleManager->identify( m_xFrame );
}
- catch( Exception& )
+ catch( const Exception& )
{
}
}
@@ -1584,11 +1584,11 @@ void MenuBarManager::RetrieveShortcuts( std::vector< MenuItemHandler* >& aMenuSh
m_xModuleAcceleratorManager = xModuleAccelCfg;
}
}
- catch ( RuntimeException& )
+ catch ( const RuntimeException& )
{
throw;
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -1654,7 +1654,7 @@ void MenuBarManager::RetrieveImageManagers()
if ( xModuleManager.is() )
m_aModuleIdentifier = xModuleManager->identify( Reference< XInterface >( m_xFrame, UNO_QUERY ) );
}
- catch( Exception& )
+ catch( const Exception& )
{
}
@@ -1810,7 +1810,7 @@ void MenuBarManager::FillMenu(
}
}
}
- catch ( IndexOutOfBoundsException& )
+ catch ( const IndexOutOfBoundsException& )
{
break;
}
@@ -1890,7 +1890,7 @@ void MenuBarManager::SetItemContainer( const Reference< XIndexAccess >& rItemCon
{
m_aModuleIdentifier = xModuleManager->identify( xFrame );
}
- catch( Exception& )
+ catch( const Exception& )
{
}
}
diff --git a/framework/source/uielement/menubarwrapper.cxx b/framework/source/uielement/menubarwrapper.cxx
index 590e029f01b6..a89ca7e8653f 100644
--- a/framework/source/uielement/menubarwrapper.cxx
+++ b/framework/source/uielement/menubarwrapper.cxx
@@ -165,7 +165,7 @@ void SAL_CALL MenuBarWrapper::initialize( const Sequence< Any >& aArguments ) th
{
aModuleIdentifier = xModuleManager->identify( xFrame );
}
- catch( Exception& )
+ catch( const Exception& )
{
}
@@ -183,7 +183,7 @@ void SAL_CALL MenuBarWrapper::initialize( const Sequence< Any >& aArguments ) th
MenuBarManager::FillMenuWithConfiguration( nId, pVCLMenuBar, aModuleIdentifier, m_xConfigData, xTrans );
}
}
- catch ( NoSuchElementException& )
+ catch ( const NoSuchElementException& )
{
}
@@ -246,7 +246,7 @@ void SAL_CALL MenuBarWrapper::updateSettings() throw ( RuntimeException )
if ( m_xConfigData.is() )
pMenuBarManager->SetItemContainer( m_xConfigData );
}
- catch ( NoSuchElementException& )
+ catch ( const NoSuchElementException& )
{
}
}
diff --git a/framework/source/uielement/newmenucontroller.cxx b/framework/source/uielement/newmenucontroller.cxx
index 3877f193e317..dad7a1922c47 100644
--- a/framework/source/uielement/newmenucontroller.cxx
+++ b/framework/source/uielement/newmenucontroller.cxx
@@ -315,7 +315,7 @@ void NewMenuController::retrieveShortcutsFromConfiguration(
aMenuShortCuts[i] = svt::AcceleratorExecute::st_AWTKey2VCLKey( aKeyEvent );
}
}
- catch ( IllegalArgumentException& )
+ catch ( const IllegalArgumentException& )
{
}
}
@@ -524,11 +524,11 @@ void NewMenuController::impl_setPopupMenu()
}
}
}
- catch ( RuntimeException& )
+ catch ( const RuntimeException& )
{
throw;
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
diff --git a/framework/source/uielement/popupmenucontroller.cxx b/framework/source/uielement/popupmenucontroller.cxx
index 35636d9a7697..c1afcd45c876 100644
--- a/framework/source/uielement/popupmenucontroller.cxx
+++ b/framework/source/uielement/popupmenucontroller.cxx
@@ -226,7 +226,7 @@ Reference< awt::XWindow > SAL_CALL PopupMenuController::createPopupWindow() thro
mxPopupMenu->execute( xPeer, VCLUnoHelper::ConvertToAWTRect( aRect ), 0 );
pToolBox->SetItemDown( nItemId, sal_False );
}
- catch( Exception& )
+ catch( const Exception& )
{
}
diff --git a/framework/source/uielement/progressbarwrapper.cxx b/framework/source/uielement/progressbarwrapper.cxx
index bc78ac628b78..e8fddb76324b 100644
--- a/framework/source/uielement/progressbarwrapper.cxx
+++ b/framework/source/uielement/progressbarwrapper.cxx
@@ -96,7 +96,7 @@ void ProgressBarWrapper::setStatusBar( const uno::Reference< awt::XWindow >& rSt
if ( xComponent.is() )
xComponent->dispose();
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
}
m_xStatusBar.clear();
@@ -319,7 +319,7 @@ throw (uno::RuntimeException)
if ( xComponent.is() )
xComponent->dispose();
}
- catch ( lang::DisposedException& )
+ catch ( const lang::DisposedException& )
{
}
}
diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx
index 0329c3f89316..056d4e94adae 100644
--- a/framework/source/uielement/recentfilesmenucontroller.cxx
+++ b/framework/source/uielement/recentfilesmenucontroller.cxx
@@ -503,7 +503,7 @@ IMPL_STATIC_LINK_NOINSTANCE( RecentFilesMenuController, ExecuteHdl_Impl, LoadRec
// elements if a component gets detached from its frame!
pLoadRecentFile->xDispatch->dispatch( pLoadRecentFile->aTargetURL, pLoadRecentFile->aArgSeq );
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
diff --git a/framework/source/uielement/statusbarmanager.cxx b/framework/source/uielement/statusbarmanager.cxx
index c23932c7f8d4..d5cc5cda19fe 100644
--- a/framework/source/uielement/statusbarmanager.cxx
+++ b/framework/source/uielement/statusbarmanager.cxx
@@ -231,7 +231,7 @@ void SAL_CALL StatusBarManager::dispose() throw( uno::RuntimeException )
static_cast< ::cppu::OWeakObject *>( this ),
uno::UNO_QUERY ));
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
}
}
@@ -310,7 +310,7 @@ void StatusBarManager::UpdateControllers()
if ( xUpdatable.is() )
xUpdatable->update();
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
}
}
@@ -336,7 +336,7 @@ void StatusBarManager::RemoveControllers()
if ( xComponent.is() )
xComponent->dispose();
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
}
@@ -532,7 +532,7 @@ void StatusBarManager::FillStatusBar( const uno::Reference< container::XIndexAcc
}
}
}
- catch ( ::com::sun::star::lang::IndexOutOfBoundsException& )
+ catch ( const ::com::sun::star::lang::IndexOutOfBoundsException& )
{
break;
}
diff --git a/framework/source/uielement/statusbarwrapper.cxx b/framework/source/uielement/statusbarwrapper.cxx
index a105ae786ce5..beb14e2c85e4 100644
--- a/framework/source/uielement/statusbarwrapper.cxx
+++ b/framework/source/uielement/statusbarwrapper.cxx
@@ -147,7 +147,7 @@ void SAL_CALL StatusBarWrapper::initialize( const Sequence< Any >& aArguments )
pStatusBarManager->FillStatusBar( m_xConfigData );
}
}
- catch ( NoSuchElementException& )
+ catch ( const NoSuchElementException& )
{
}
}
@@ -174,7 +174,7 @@ void SAL_CALL StatusBarWrapper::updateSettings() throw ( RuntimeException )
if ( m_xConfigData.is() )
pStatusBarManager->FillStatusBar( m_xConfigData );
}
- catch ( NoSuchElementException& )
+ catch ( const NoSuchElementException& )
{
}
}
diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx
index 9c06cceda2d0..a31f32865818 100644
--- a/framework/source/uielement/toolbarsmenucontroller.cxx
+++ b/framework/source/uielement/toolbarsmenucontroller.cxx
@@ -135,7 +135,7 @@ Reference< XLayoutManager > getLayoutManagerFromFrame( const Reference< XFrame >
{
xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ))) >>= xLayoutManager;
}
- catch ( UnknownPropertyException& )
+ catch ( const UnknownPropertyException& )
{
}
@@ -249,7 +249,7 @@ rtl::OUString ToolbarsMenuController::getUINameFromCommand( const rtl::OUString&
UNO_QUERY );
xNameAccess->getByName( m_aModuleIdentifier ) >>= m_xUICommandDescription;
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -273,7 +273,7 @@ rtl::OUString ToolbarsMenuController::getUINameFromCommand( const rtl::OUString&
}
aLabel = aStr;
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -337,7 +337,7 @@ Sequence< Sequence< com::sun::star::beans::PropertyValue > > ToolbarsMenuControl
aToolBarArray.push_back( aToolBarInfo );
}
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -434,7 +434,7 @@ void ToolbarsMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& r
}
}
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
@@ -685,7 +685,7 @@ void SAL_CALL ToolbarsMenuController::select( const css::awt::MenuEvent& rEvent
}
}
}
- catch ( NoSuchElementException& )
+ catch ( const NoSuchElementException& )
{
}
}
@@ -702,10 +702,10 @@ void SAL_CALL ToolbarsMenuController::select( const css::awt::MenuEvent& rEvent
{
xPropSet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "RefreshContextToolbarVisibility" )), makeAny( sal_True ));
}
- catch ( RuntimeException& )
+ catch ( const RuntimeException& )
{
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -713,11 +713,11 @@ void SAL_CALL ToolbarsMenuController::select( const css::awt::MenuEvent& rEvent
RefreshToolbars( xFrame );
}
}
- catch ( RuntimeException& )
+ catch ( const RuntimeException& )
{
throw;
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -878,7 +878,7 @@ void SAL_CALL ToolbarsMenuController::initialize( const Sequence< Any >& aArgume
}
m_aModuleIdentifier = aModuleIdentifier;
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -898,7 +898,7 @@ IMPL_STATIC_LINK_NOINSTANCE( ToolbarsMenuController, ExecuteHdl_Impl, ExecuteInf
pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs );
}
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
diff --git a/framework/source/uielement/toolbarwrapper.cxx b/framework/source/uielement/toolbarwrapper.cxx
index ebad6f9787c9..d9e279013995 100644
--- a/framework/source/uielement/toolbarwrapper.cxx
+++ b/framework/source/uielement/toolbarwrapper.cxx
@@ -199,7 +199,7 @@ void SAL_CALL ToolBarWrapper::initialize( const Sequence< Any >& aArguments ) th
pToolBar->SetOutputSizePixel( aSize );
}
}
- catch ( NoSuchElementException& )
+ catch ( const NoSuchElementException& )
{
// No settings in our configuration manager. This means we are
// a transient toolbar which has no persistent settings.
@@ -257,7 +257,7 @@ void SAL_CALL ToolBarWrapper::updateSettings() throw (::com::sun::star::uno::Run
if ( m_xConfigData.is() )
pToolBarManager->FillToolbar( m_xConfigData );
}
- catch ( NoSuchElementException& )
+ catch ( const NoSuchElementException& )
{
}
}