summaryrefslogtreecommitdiff
path: root/scripting/source/stringresource/stringresource.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r--scripting/source/stringresource/stringresource.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 7b27a5751a35..4d328e22d716 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -183,9 +183,7 @@ OUString StringResourceImpl::implResolveString
}
if( !bSuccess )
{
- OUString errorMsg("StringResourceImpl: No entry for ResourceID: ");
- errorMsg = errorMsg.concat( ResourceID );
- throw css::resource::MissingResourceException( errorMsg );
+ throw css::resource::MissingResourceException( "StringResourceImpl: No entry for ResourceID: " + ResourceID );
}
return aRetStr;
}
@@ -413,9 +411,7 @@ void StringResourceImpl::implRemoveId( const OUString& ResourceID, LocaleItem* p
IdToStringMap::iterator it = rHashMap.find( ResourceID );
if( it == rHashMap.end() )
{
- OUString errorMsg("StringResourceImpl: No entries for ResourceID: ");
- errorMsg = errorMsg.concat( ResourceID );
- throw css::resource::MissingResourceException( errorMsg );
+ throw css::resource::MissingResourceException( "StringResourceImpl: No entries for ResourceID: " + ResourceID );
}
rHashMap.erase( it );
pLocaleItem->m_bModified = true;