summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2016-06-18 08:35:06 +0300
committerNoel Grandin <noelgrandin@gmail.com>2016-06-18 09:23:25 +0000
commit1801c00d39a911d80edbb59e0895974297f1373b (patch)
treeeab9295454ff5b5941603fdfe2f0cb8ea79f5839 /sc
parent63f15b36f7a196edb20ce7a0aba6f6b3d28dd652 (diff)
Improve readability of OUString concatanation in ScNavigatorDlg
It is more readable and more efficient as a bonus. See: https://goo.gl/jsVAwy: Change-Id: I0831b2f6ab2912a15ff33397a7959596b7bd3cb8 Reviewed-on: https://gerrit.libreoffice.org/26451 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/navipi/navipi.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 862b985f4039..12c81b72e8f8 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -581,16 +581,15 @@ ScNavigatorDlg::ScNavigatorDlg( SfxBindings* pB, SfxChildWindowContext* pCW, vcl
// eListMode is set from outside, Root further below
aLbDocuments->SetDropDownLineCount(9);
- OUString aOpen(" (");
- aStrActive = aOpen;
- aStrActive += OUString( ScResId( STR_ACTIVE ) );
- aStrActive += ")"; // " (active)"
- aStrNotActive = aOpen;
- aStrNotActive += OUString( ScResId( STR_NOTACTIVE ) );
- aStrNotActive += ")"; // " (not active)"
- aStrHidden = aOpen;
- aStrHidden += OUString( ScResId( STR_HIDDEN ) );
- aStrHidden += ")"; // " (hidden)"
+ aStrActive = " ("
+ + OUString( ScResId( STR_ACTIVE ) )
+ + ")"; // " (active)"
+ aStrNotActive = " ("
+ + OUString( ScResId( STR_NOTACTIVE ) )
+ + ")"; // " (not active)"
+ aStrHidden = " ("
+ + OUString( ScResId( STR_HIDDEN ) )
+ + ")"; // " (hidden)"
aTitleBase = GetText();