summaryrefslogtreecommitdiffstats
path: root/canvas/source/factory/cf_service.cxx
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/source/factory/cf_service.cxx
parentintroduced Date::IsValidDate() and Date::Normalize() (diff)
downloadcore-7113c7152d1ec875e65e97548fa6243fc83fbc53.tar.gz
core-7113c7152d1ec875e65e97548fa6243fc83fbc53.zip
catch by constant reference
Diffstat (limited to 'canvas/source/factory/cf_service.cxx')
-rw-r--r--canvas/source/factory/cf_service.cxx8
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>();
}