summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-11-30 11:05:16 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-11-30 11:27:42 +0900
commit7113c7152d1ec875e65e97548fa6243fc83fbc53 (patch)
tree9fa8fb3e89086e2ed06c8f210ed519331b254414 /canvas
parent2b2f6abfcc83c4701b42c92c6209a1052324f0a5 (diff)
catch by constant reference
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_config.cxx4
-rw-r--r--canvas/source/factory/cf_service.cxx8
-rw-r--r--canvas/source/tools/canvastools.cxx2
-rw-r--r--canvas/workben/canvasdemo.cxx2
4 files changed, 8 insertions, 8 deletions
diff --git a/canvas/source/directx/dx_config.cxx b/canvas/source/directx/dx_config.cxx
index cc442c1054bf..65f8e89d4767 100644
--- a/canvas/source/directx/dx_config.cxx
+++ b/canvas/source/directx/dx_config.cxx
@@ -89,7 +89,7 @@ namespace dxcanvas
else
maMaxTextureSize.reset();
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
OSL_FAIL( rtl::OUStringToOString(
comphelper::anyToString( cppu::getCaughtException() ),
@@ -130,7 +130,7 @@ namespace dxcanvas
aValue[0] <<= aValues;
PutProperties( aName, aValue );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
OSL_FAIL( rtl::OUStringToOString(
comphelper::anyToString( cppu::getCaughtException() ),
diff --git a/canvas/source/factory/cf_service.cxx b/canvas/source/factory/cf_service.cxx
index c79927e3596e..8127bfd4ff7e 100644
--- a/canvas/source/factory/cf_service.cxx
+++ b/canvas/source/factory/cf_service.cxx
@@ -203,11 +203,11 @@ CanvasFactory::CanvasFactory( Reference<XComponentContext> const & xContext ) :
++pCurr;
}
}
- catch (RuntimeException &)
+ catch (const RuntimeException &)
{
throw;
}
- catch (Exception&)
+ catch (const Exception&)
{
}
@@ -290,11 +290,11 @@ Reference<XInterface> CanvasFactory::use(
return m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext(
serviceName, args, xContext);
}
- catch (RuntimeException &)
+ catch (const RuntimeException &)
{
throw;
}
- catch (Exception &)
+ catch (const Exception &)
{
return Reference<XInterface>();
}
diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx
index 7f3ba8254d4e..c663d43b6338 100644
--- a/canvas/source/tools/canvastools.cxx
+++ b/canvas/source/tools/canvastools.cxx
@@ -916,7 +916,7 @@ namespace canvas
o_rxParams[ 1 ] = uno::makeAny( xPropSet->getPropertyValue(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("DeviceHandle") ) ) );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
// ignore, but return empty sequence
}
diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx
index e8ad09875128..00bcec9458ff 100644
--- a/canvas/workben/canvasdemo.cxx
+++ b/canvas/workben/canvasdemo.cxx
@@ -678,7 +678,7 @@ void DemoApp::Main()
if( xFactory.is() )
::comphelper::setProcessServiceFactory( xFactory );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}