summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorGökhan Gurbetoğlu <gokhan.gurbetoglu@pardus.org.tr>2016-08-23 10:23:19 +0300
committerNoel Grandin <noelgrandin@gmail.com>2016-08-24 06:55:00 +0000
commitc899cc46fc6522b7fd7c243bf7a67dfbe2e1e586 (patch)
treeeceb96b16535d86dc810b64aaf102b08bb6825a1 /cui
parent8573b1baa66c65cc170d1393cacf948b4ead3e6a (diff)
tdf#100726 - Improve readability of OUString concatanations
Change-Id: I59c605bb31859a2a419cc9e9e60c174e842a03db Reviewed-on: https://gerrit.libreoffice.org/28349 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/personalization.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 17ae2d78d952..77522560f271 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -214,8 +214,7 @@ IMPL_LINK_TYPED( SelectPersonaDialog, SelectPersona, Button*, pButton, void )
// get the persona name from the setting variable to show in the progress.
sal_Int32 nNameIndex = m_aSelectedPersona.indexOf( ';' );
OUString aName = m_aSelectedPersona.copy( 0, nNameIndex );
- OUString aProgress( CUI_RES( RID_SVXSTR_SELECTEDPERSONA ) );
- aProgress += aName;
+ OUString aProgress = CUI_RESSTR( RID_SVXSTR_SELECTEDPERSONA ) + aName;
SetProgress( aProgress );
}
break;
@@ -417,9 +416,9 @@ void SvxPersonalizationTabPage::LoadDefaultImages()
{
// Load the pre saved personas
- OUString gallery( "" );
- gallery = "$BRAND_BASE_DIR/" LIBO_SHARE_FOLDER;
- gallery += "/gallery/personas/";
+ OUString gallery = "$BRAND_BASE_DIR/"
+ + OUString(LIBO_SHARE_FOLDER)
+ + "/gallery/personas/";
rtl::Bootstrap::expandMacros( gallery );
OUString aPersonasList = gallery + "personas_list.txt";
SvFileStream aStream( aPersonasList, StreamMode::READ );