diff options
Diffstat (limited to 'basic/source/uno/namecont.cxx')
-rw-r--r-- | basic/source/uno/namecont.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 92b38c6f3836..2a61123290e3 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -237,9 +237,7 @@ void NameContainer::removeByName( const OUString& aName ) NameContainerNameMap::iterator aIt = mHashMap.find( aName ); if( aIt == mHashMap.end() ) { - OUString sMessage = OUStringBuffer().append('"') - .append(aName).append("\" not found") - .makeStringAndClear(); + OUString sMessage = "\"" + aName + "\" not found"; throw NoSuchElementException(sMessage, uno::Reference< uno::XInterface >()); } |