From c85a3ac70d813eef9baa9a5592c0a2d724bb9038 Mon Sep 17 00:00:00 2001 From: nadith Date: Fri, 29 Jul 2016 11:47:40 +0530 Subject: tdf#100726: Improve readability of OUString concatenation all most all of the places in the basic basctl modules this bug fixed Change-Id: I1a4a03e207c1b520449c31a05265585120da07f6 Reviewed-on: https://gerrit.libreoffice.org/27662 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/uno/dlgcont.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'basic/source/uno/dlgcont.cxx') diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index 2a8684e494bb..ec6d3c6815d2 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -359,8 +359,7 @@ Reference< css::resource::XStringResourcePersistence > // get ui locale ::com::sun ::star::lang::Locale aLocale = Application::GetSettings().GetUILanguageTag().getLocale(); - OUString aComment(aResourceFileCommentBase); - aComment += aLibName; + OUString aComment= aResourceFileCommentBase + aLibName; bool bStorage = mxStorage.is(); if( bStorage ) @@ -531,8 +530,7 @@ void SfxDialogLibrary::storeResourcesAsURL void SfxDialogLibrary::storeResourcesToURL( const OUString& URL, const Reference< task::XInteractionHandler >& xHandler ) { - OUString aComment(aResourceFileCommentBase); - aComment += m_aName; + OUString aComment = aResourceFileCommentBase + m_aName; if( m_xStringResourcePersistence.is() ) { @@ -543,8 +541,7 @@ void SfxDialogLibrary::storeResourcesToURL( const OUString& URL, void SfxDialogLibrary::storeResourcesToStorage( const css::uno::Reference< css::embed::XStorage >& xStorage ) { - OUString aComment(aResourceFileCommentBase); - aComment += m_aName; + OUString aComment = aResourceFileCommentBase + m_aName; if( m_xStringResourcePersistence.is() ) { -- cgit