diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-10 16:00:31 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-17 17:55:02 +0100 |
commit | 9599f5eda7187567dbf8b198aa63b7421d5e9a17 (patch) | |
tree | bb1815f01f11347d957f0e97f941c3a856aabf8a | |
parent | 1b4b828fddbb8cd9a1314e8e54641740629b206c (diff) |
Use optimized OUString concatenation
Change-Id: I61cbbf8613bd0a2221a8244cb76b10cf0e81a4a8
Reviewed-on: https://gerrit.libreoffice.org/67634
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
-rw-r--r-- | sfx2/source/dialog/splitwin.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index c4396069e705..d9a50f003bbd 100644 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -224,8 +224,7 @@ SfxSplitWindow::SfxSplitWindow( vcl::Window* pParent, SfxChildAlignment eAl, if ( bWithButtons ) { // Read Configuration - OUString aWindowId("SplitWindow"); - aWindowId += OUString::number( static_cast<sal_Int32>(eTbxAlign) ); + const OUString aWindowId{ "SplitWindow" + OUString::number(static_cast<sal_Int32>(eTbxAlign)) }; SvtViewOptions aWinOpt( EViewType::Window, aWindowId ); OUString aWinData; Any aUserItem = aWinOpt.GetUserItem( USERITEM_NAME ); @@ -325,8 +324,7 @@ void SfxSplitWindow::SaveConfig_Impl() aWinData.append(static_cast<sal_Int32>(rDock->nType)); } - OUString aWindowId("SplitWindow"); - aWindowId += OUString::number( static_cast<sal_Int32>(GetAlign()) ); + const OUString aWindowId{ "SplitWindow" + OUString::number(static_cast<sal_Int32>(GetAlign())) }; SvtViewOptions aWinOpt( EViewType::Window, aWindowId ); aWinOpt.SetUserItem( USERITEM_NAME, makeAny( aWinData.makeStringAndClear() ) ); } |