summaryrefslogtreecommitdiff
path: root/stoc/source/registry_tdprovider
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/registry_tdprovider')
-rw-r--r--stoc/source/registry_tdprovider/functiondescription.cxx6
-rw-r--r--stoc/source/registry_tdprovider/methoddescription.cxx3
-rw-r--r--stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx3
-rw-r--r--stoc/source/registry_tdprovider/structtypedescription.cxx2
-rw-r--r--stoc/source/registry_tdprovider/tdiface.cxx9
-rw-r--r--stoc/source/registry_tdprovider/tdprovider.cxx2
-rw-r--r--stoc/source/registry_tdprovider/tdservice.cxx15
-rw-r--r--stoc/source/registry_tdprovider/tdsingleton.cxx6
8 files changed, 16 insertions, 30 deletions
diff --git a/stoc/source/registry_tdprovider/functiondescription.cxx b/stoc/source/registry_tdprovider/functiondescription.cxx
index 8840451355fe..0d7d160ddb31 100644
--- a/stoc/source/registry_tdprovider/functiondescription.cxx
+++ b/stoc/source/registry_tdprovider/functiondescription.cxx
@@ -73,8 +73,7 @@ FunctionDescription::getExceptions() const {
} catch (const css::container::NoSuchElementException & e) {
throw new css::uno::RuntimeException(
(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.container.NoSuchElementException: "))
+ "com.sun.star.container.NoSuchElementException: ")
+ e.Message),
css::uno::Reference< css::uno::XInterface >()); //TODO
}
@@ -82,8 +81,7 @@ FunctionDescription::getExceptions() const {
|| exceptions[i]->getTypeClass() != css::uno::TypeClass_EXCEPTION)
{
throw new css::uno::RuntimeException(
- (rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM("not an exception type: "))
+ (rtl::OUString("not an exception type: ")
+ name),
css::uno::Reference< css::uno::XInterface >()); //TODO
}
diff --git a/stoc/source/registry_tdprovider/methoddescription.cxx b/stoc/source/registry_tdprovider/methoddescription.cxx
index fd2d6c3343aa..d5ab8e14099d 100644
--- a/stoc/source/registry_tdprovider/methoddescription.cxx
+++ b/stoc/source/registry_tdprovider/methoddescription.cxx
@@ -92,8 +92,7 @@ css::uno::Reference< css::reflection::XTypeDescription > Parameter::getType()
} catch (const css::container::NoSuchElementException & e) {
throw new css::uno::RuntimeException(
(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.container.NoSuchElementException: "))
+ "com.sun.star.container.NoSuchElementException: ")
+ e.Message),
static_cast< cppu::OWeakObject * >(this));
}
diff --git a/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx b/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx
index 50be0cb335df..4c2cd50da07a 100644
--- a/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx
+++ b/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx
@@ -272,8 +272,7 @@ TypeDescriptionEnumerationImpl::nextTypeDescription()
return xTD;
throw container::NoSuchElementException(
- rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM("No further elements in enumeration!") ),
+ rtl::OUString("No further elements in enumeration!"),
static_cast< cppu::OWeakObject * >( this ) );
}
diff --git a/stoc/source/registry_tdprovider/structtypedescription.cxx b/stoc/source/registry_tdprovider/structtypedescription.cxx
index 3251fd1812d2..5c2959a857ad 100644
--- a/stoc/source/registry_tdprovider/structtypedescription.cxx
+++ b/stoc/source/registry_tdprovider/structtypedescription.cxx
@@ -110,7 +110,7 @@ css::uno::Sequence< rtl::OUString > StructTypeDescription::getTypeParameters()
return parameters;
} catch (std::bad_alloc &) {
throw css::uno::RuntimeException(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("std::bad_alloc")),
+ rtl::OUString("std::bad_alloc"),
static_cast< cppu::OWeakObject * >(this));
}
}
diff --git a/stoc/source/registry_tdprovider/tdiface.cxx b/stoc/source/registry_tdprovider/tdiface.cxx
index 0ec64d9e4c8e..36c17f913b94 100644
--- a/stoc/source/registry_tdprovider/tdiface.cxx
+++ b/stoc/source/registry_tdprovider/tdiface.cxx
@@ -339,8 +339,7 @@ void InterfaceTypeDescriptionImpl::checkInterfaceType(
if (resolveTypedefs(type)->getTypeClass() != TypeClass_INTERFACE) {
throw RuntimeException(
OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "Interface base is not an interface type")),
+ "Interface base is not an interface type"),
static_cast< OWeakObject * >(this));
}
}
@@ -537,8 +536,7 @@ InterfaceTypeDescriptionImpl::getBaseTypes() throw (RuntimeException) {
} catch (const NoSuchElementException & e) {
throw RuntimeException(
(OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.container.NoSuchElementException: "))
+ "com.sun.star.container.NoSuchElementException: ")
+ e.Message),
static_cast< OWeakObject * >(this));
}
@@ -565,8 +563,7 @@ InterfaceTypeDescriptionImpl::getOptionalBaseTypes() throw (RuntimeException) {
} catch (const NoSuchElementException & e) {
throw RuntimeException(
(OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.container.NoSuchElementException: "))
+ "com.sun.star.container.NoSuchElementException: ")
+ e.Message),
static_cast< OWeakObject * >(this));
}
diff --git a/stoc/source/registry_tdprovider/tdprovider.cxx b/stoc/source/registry_tdprovider/tdprovider.cxx
index 92dbc92ddeab..84223360787b 100644
--- a/stoc/source/registry_tdprovider/tdprovider.cxx
+++ b/stoc/source/registry_tdprovider/tdprovider.cxx
@@ -272,7 +272,7 @@ void ProviderImpl::initialize(
if (xRegistry.is() && xRegistry->isValid())
{
com::sun::star::uno::Reference< XRegistryKey > xKey( xRegistry->getRootKey()->openKey(
- OUString( RTL_CONSTASCII_USTRINGPARAM("/UCR") ) ) );
+ OUString("/UCR") ) );
if (xKey.is() && xKey->isValid())
{
_aBaseKeys.push_back( xKey );
diff --git a/stoc/source/registry_tdprovider/tdservice.cxx b/stoc/source/registry_tdprovider/tdservice.cxx
index 585a0268eed2..294f000db92c 100644
--- a/stoc/source/registry_tdprovider/tdservice.cxx
+++ b/stoc/source/registry_tdprovider/tdservice.cxx
@@ -347,8 +347,7 @@ ServiceTypeDescriptionImpl::getConstructors() throw (RuntimeException) {
{
throw RuntimeException(
rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "Service has bad constructors")),
+ "Service has bad constructors"),
static_cast< OWeakObject * >(this));
}
(*ctors)[i] = new Constructor(
@@ -375,8 +374,7 @@ void ServiceTypeDescriptionImpl::getReferences()
if (superTypes > 1) {
throw RuntimeException(
rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "Service has more than one supertype")),
+ "Service has more than one supertype"),
static_cast< OWeakObject * >(this));
}
if (superTypes == 1) {
@@ -398,8 +396,7 @@ void ServiceTypeDescriptionImpl::getReferences()
{
throw RuntimeException(
OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.container.NoSuchElementException: " ) )
+ "com.sun.star.container.NoSuchElementException: " )
+ e.Message,
static_cast< OWeakObject * >( this ) );
}
@@ -466,8 +463,7 @@ void ServiceTypeDescriptionImpl::getReferences()
if ( !( aTypeDesc >>= aOptionalServices[ nOS ] ) )
throw RuntimeException(
OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "Service 'export' is not a service" ) ),
+ "Service 'export' is not a service" ),
static_cast< OWeakObject * >( this ) );
nOS++;
}
@@ -477,8 +473,7 @@ void ServiceTypeDescriptionImpl::getReferences()
if ( !( aTypeDesc >>= aMandatoryServices[ nMS ] ) )
throw RuntimeException(
OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "Service 'export' is not a service" ) ),
+ "Service 'export' is not a service" ),
static_cast< OWeakObject * >( this ) );
nMS++;
}
diff --git a/stoc/source/registry_tdprovider/tdsingleton.cxx b/stoc/source/registry_tdprovider/tdsingleton.cxx
index f995558e9fc6..b777974049d7 100644
--- a/stoc/source/registry_tdprovider/tdsingleton.cxx
+++ b/stoc/source/registry_tdprovider/tdsingleton.cxx
@@ -41,8 +41,7 @@ void SingletonTypeDescriptionImpl::init() {
} catch (NoSuchElementException const & e) {
throw RuntimeException(
(OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.container.NoSuchElementException: "))
+ "com.sun.star.container.NoSuchElementException: ")
+ e.Message),
static_cast< OWeakObject * >(this));
}
@@ -56,8 +55,7 @@ void SingletonTypeDescriptionImpl::init() {
} else {
throw RuntimeException(
OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "Singleton is based on neither interface nor service")),
+ "Singleton is based on neither interface nor service"),
static_cast< OWeakObject * >(this));
}
}