From b2f8318dbda8a09fa312663d14fcaf057ee5069d Mon Sep 17 00:00:00 2001 From: "Chr. Rossmanith" Date: Tue, 19 Mar 2013 21:15:00 +0100 Subject: simplify OUString assignments Change-Id: Ieffd80aa84c9a041785bb81b3a904a32d00cb2bb Reviewed-on: https://gerrit.libreoffice.org/2863 Reviewed-by: Noel Power Tested-by: Noel Power --- comphelper/source/container/embeddedobjectcontainer.cxx | 2 +- comphelper/source/misc/locale.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx index 8f449b5caa6a..ad55865f6982 100644 --- a/comphelper/source/container/embeddedobjectcontainer.cxx +++ b/comphelper/source/container/embeddedobjectcontainer.cxx @@ -1032,7 +1032,7 @@ sal_Bool EmbeddedObjectContainer::RemoveEmbeddedObject( const uno::Reference < e pImpl->mxTempStorage = ::comphelper::OStorageHelper::GetTemporaryStorage(); uno::Sequence < beans::PropertyValue > aSeq; - ::rtl::OUString aTmpPersistName = ::rtl::OUString( "Object " ); + OUString aTmpPersistName = "Object "; aTmpPersistName += ::rtl::OUString::valueOf( (sal_Int32) pImpl->maTempObjectContainer.size() ); xPersist->storeAsEntry( pImpl->mxTempStorage, aTmpPersistName, aSeq, aSeq ); diff --git a/comphelper/source/misc/locale.cxx b/comphelper/source/misc/locale.cxx index f11a13d94461..d1d528c4d6a7 100644 --- a/comphelper/source/misc/locale.cxx +++ b/comphelper/source/misc/locale.cxx @@ -124,9 +124,9 @@ void Locale::setVariant(const ::rtl::OUString& sVariant) void Locale::fromISO(const ::rtl::OUString& sISO) throw(Locale::MalFormedLocaleException) { - m_sLanguage = ::rtl::OUString(); - m_sCountry = ::rtl::OUString(); - m_sVariant = ::rtl::OUString(); + m_sLanguage = ""; + m_sCountry = ""; + m_sVariant = ""; ::rtl::OUString sParser(sISO); sParser = sParser.trim(); -- cgit