summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-01-07 15:50:41 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-01-07 15:51:31 +0900
commite4ce7225dd987f9b2f250f055d9688de79931444 (patch)
tree410ae8624915809274fc28759eef78919a980f60 /toolkit
parentd74c77428deba9619c678a59d6442ec281385264 (diff)
catch exception by constant reference
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx8
-rw-r--r--toolkit/source/controls/tree/treecontrol.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 0eb2d1ae46e6..b9d94be3ec1b 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -1224,7 +1224,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
{
pChildWindow = new WorkWindow( &aParentData );
}
- catch ( ::com::sun::star::uno::RuntimeException & rEx )
+ catch ( const ::com::sun::star::uno::RuntimeException & rEx )
{
// system child window could not be created
OSL_TRACE(
@@ -1638,7 +1638,7 @@ void VCLXToolkit::callTopWindowListeners(
{
(xListener.get()->*pFn)(aAwtEvent);
}
- catch (::css::uno::RuntimeException & rEx)
+ catch (const ::css::uno::RuntimeException & rEx)
{
OSL_TRACE(
"VCLXToolkit::callTopWindowListeners: caught %s\n",
@@ -1686,7 +1686,7 @@ long VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent,
: xHandler->keyReleased(aAwtEvent)))
return 1;
}
- catch (::css::uno::RuntimeException & rEx)
+ catch (const ::css::uno::RuntimeException & rEx)
{
OSL_TRACE(
"VCLXToolkit::callKeyHandlers: caught %s\n",
@@ -1734,7 +1734,7 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent,
bGained ? xListener->focusGained(aAwtEvent)
: xListener->focusLost(aAwtEvent);
}
- catch (::css::uno::RuntimeException & rEx)
+ catch (const ::css::uno::RuntimeException & rEx)
{
OSL_TRACE(
"VCLXToolkit::callFocusListeners: caught %s\n",
diff --git a/toolkit/source/controls/tree/treecontrol.cxx b/toolkit/source/controls/tree/treecontrol.cxx
index 7cb35b331ad9..72a14eba0816 100644
--- a/toolkit/source/controls/tree/treecontrol.cxx
+++ b/toolkit/source/controls/tree/treecontrol.cxx
@@ -471,13 +471,13 @@ void SAL_CALL TreeEditListenerMultiplexer::nodeEditing( const Reference< XTreeNo
{
xListener->nodeEditing( Node );
}
- catch( DisposedException& e )
+ catch( const DisposedException& e )
{
OSL_ENSURE( e.Context.is(), "caught DisposedException with empty Context field" );
if ( e.Context == xListener || !e.Context.is() )
aIt.remove();
}
- catch( RuntimeException& e )
+ catch( const RuntimeException& e )
{
(void)e;
DISPLAY_EXCEPTION( TreeEditListenerMultiplexer, nodeEditing, e )
@@ -495,13 +495,13 @@ void SAL_CALL TreeEditListenerMultiplexer::nodeEdited( const Reference< XTreeNod
{
xListener->nodeEdited( Node, NewText );
}
- catch( DisposedException& e )
+ catch( const DisposedException& e )
{
OSL_ENSURE( e.Context.is(), "caught DisposedException with empty Context field" );
if ( e.Context == xListener || !e.Context.is() )
aIt.remove();
}
- catch( RuntimeException& e )
+ catch( const RuntimeException& e )
{
(void)e;
DISPLAY_EXCEPTION( TreeEditListenerMultiplexer, nodeEdited, e )