summaryrefslogtreecommitdiffstats
path: root/stoc/source/servicemanager
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-28 12:50:02 +0200
committerNoel Grandin <noel@peralex.com>2014-05-29 09:01:40 +0200
commitebc0a15515c2e29259a7e229cfbdfb5d26fc3006 (patch)
tree2ce9446ed312a1a7aed53183b19ecc9fefabea8a /stoc/source/servicemanager
parentremove unnecessary NULL parameter passed to UNO Exception (diff)
downloadcore-ebc0a15515c2e29259a7e229cfbdfb5d26fc3006.tar.gz
core-ebc0a15515c2e29259a7e229cfbdfb5d26fc3006.zip
remove more unnecesary OUString constructor use
when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
Diffstat (limited to 'stoc/source/servicemanager')
-rw-r--r--stoc/source/servicemanager/servicemanager.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx
index a3aaee6f7eaf..cd065fd4dcfe 100644
--- a/stoc/source/servicemanager/servicemanager.cxx
+++ b/stoc/source/servicemanager/servicemanager.cxx
@@ -625,7 +625,7 @@ void SAL_CALL OServiceManagerWrapper::setPropertyValue(
else
{
throw IllegalArgumentException(
- OUString("no XComponentContext given!"),
+ "no XComponentContext given!",
(OWeakObject *)this, 1 );
}
}
@@ -788,7 +788,7 @@ void OServiceManager::setPropertyValue(
else
{
throw IllegalArgumentException(
- OUString("no XComponentContext given!"),
+ "no XComponentContext given!",
(OWeakObject *)this, 1 );
}
}
@@ -1187,7 +1187,7 @@ void OServiceManager::insert( const Any & Element )
if( Element.getValueTypeClass() != TypeClass_INTERFACE )
{
throw IllegalArgumentException(
- OUString("no interface given!"),
+ "no interface given!",
Reference< XInterface >(), 0 );
}
Reference<XInterface > xEle( Element, UNO_QUERY_THROW );
@@ -1265,8 +1265,7 @@ void OServiceManager::remove( const Any & Element )
else
{
throw IllegalArgumentException(
- OUString(
- "neither interface nor string given!"),
+ "neither interface nor string given!",
Reference< XInterface >(), 0 );
}
@@ -1280,7 +1279,7 @@ void OServiceManager::remove( const Any & Element )
if( aIt == m_ImplementationMap.end() )
{
throw NoSuchElementException(
- OUString("element is not in!"),
+ "element is not in!",
static_cast< OWeakObject * >(this) );
}
//First remove all factories which have been loaded by ORegistryServiceManager.