summaryrefslogtreecommitdiffstats
path: root/comphelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-26 16:59:44 +0200
committerNoel Grandin <noel@peralex.com>2014-05-27 08:20:12 +0200
commit0f2824b117b65bd9c9db2870edc159419ae0c1d9 (patch)
tree2e45a7d5e0d60b97bf989fd21c0ae35392ba5823 /comphelper/source
parentremove unnecessary use of Reference constructor in throw (diff)
downloadcore-0f2824b117b65bd9c9db2870edc159419ae0c1d9.tar.gz
core-0f2824b117b65bd9c9db2870edc159419ae0c1d9.zip
remove more unnecessary use of OUString constructor
Change-Id: Iae14cb3df65295b6894fd9e05411c5698e9c8aba
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/container/enumerablemap.cxx6
-rw-r--r--comphelper/source/property/propertybag.cxx8
2 files changed, 7 insertions, 7 deletions
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx
index b2e7def199fb..7dc2df10c93e 100644
--- a/comphelper/source/container/enumerablemap.cxx
+++ b/comphelper/source/container/enumerablemap.cxx
@@ -509,7 +509,7 @@ namespace comphelper
if ( _keyOrValue >>= nValue )
if ( ::rtl::math::isNan( nValue ) )
throw IllegalArgumentException(
- OUString( "NaN (not-a-number) not supported by this implementation." ),
+ "NaN (not-a-number) not supported by this implementation.",
*const_cast< EnumerableMap* >( this ), 0 );
// (note that the case of _key not containing a float/double value is handled in the
// respective IKeyPredicateLess implementation, so there's no need to handle this here.)
@@ -521,7 +521,7 @@ namespace comphelper
{
if ( !_key.hasValue() )
throw IllegalArgumentException(
- OUString( "NULL keys not supported by this implementation." ),
+ "NULL keys not supported by this implementation.",
*const_cast< EnumerableMap* >( this ), 0 );
impl_checkNaN_throw( _key, m_aData.m_aKeyType );
@@ -532,7 +532,7 @@ namespace comphelper
{
if ( !m_aData.m_bMutable )
throw NoSupportException(
- OUString( "The map is immutable." ),
+ "The map is immutable.",
*const_cast< EnumerableMap* >( this ) );
}
diff --git a/comphelper/source/property/propertybag.cxx b/comphelper/source/property/propertybag.cxx
index f751bbc7c05f..78e6a65bf3fc 100644
--- a/comphelper/source/property/propertybag.cxx
+++ b/comphelper/source/property/propertybag.cxx
@@ -81,7 +81,7 @@ namespace comphelper
{
if ( !_allowEmpty && _name.isEmpty() )
throw IllegalArgumentException(
- OUString( "The property name must not be empty." ),
+ "The property name must not be empty.",
// TODO: resource
NULL,
1
@@ -92,7 +92,7 @@ namespace comphelper
{
if ( _container.hasPropertyByName( _name ) || _container.hasPropertyByHandle( _handle ) )
throw PropertyExistException(
- OUString( "Property name or handle already used." ),
+ "Property name or handle already used.",
// TODO: resource
NULL );
@@ -104,7 +104,7 @@ namespace comphelper
{
if ( _rType.getTypeClass() == TypeClass_VOID )
throw IllegalArgumentException(
- OUString( "Illegal property type: VOID" ),
+ "Illegal property type: VOID",
// TODO: resource
NULL,
1
@@ -129,7 +129,7 @@ namespace comphelper
Type aPropertyType = _rInitialValue.getValueType();
if ( aPropertyType.getTypeClass() == TypeClass_VOID )
throw IllegalTypeException(
- OUString( "The initial value must be non-NULL to determine the property type." ),
+ "The initial value must be non-NULL to determine the property type.",
// TODO: resource
NULL );