diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-11-30 11:05:16 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-11-30 11:27:42 +0900 |
commit | 7113c7152d1ec875e65e97548fa6243fc83fbc53 (patch) | |
tree | 9fa8fb3e89086e2ed06c8f210ed519331b254414 /canvas/source/factory | |
parent | 2b2f6abfcc83c4701b42c92c6209a1052324f0a5 (diff) |
catch by constant reference
Diffstat (limited to 'canvas/source/factory')
-rw-r--r-- | canvas/source/factory/cf_service.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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>(); } |