summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-03-19 21:15:00 +0100
committerNoel Power <noel.power@suse.com>2013-03-20 10:28:58 +0000
commitb2f8318dbda8a09fa312663d14fcaf057ee5069d (patch)
tree1f06862395db47ed52450a0cb5425cc9463f5e27 /comphelper
parent04032bd6062638f6945e3911a491fa311404c507 (diff)
simplify OUString assignments
Change-Id: Ieffd80aa84c9a041785bb81b3a904a32d00cb2bb Reviewed-on: https://gerrit.libreoffice.org/2863 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/container/embeddedobjectcontainer.cxx2
-rw-r--r--comphelper/source/misc/locale.cxx6
2 files changed, 4 insertions, 4 deletions
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();