[Libreoffice-commits] core.git: sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Feb 17 16:55:24 UTC 2019


 sfx2/source/dialog/splitwin.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 9599f5eda7187567dbf8b198aa63b7421d5e9a17
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Feb 10 16:00:31 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Sun Feb 17 17:55:02 2019 +0100

    Use optimized OUString concatenation
    
    Change-Id: I61cbbf8613bd0a2221a8244cb76b10cf0e81a4a8
    Reviewed-on: https://gerrit.libreoffice.org/67634
    Tested-by: Jenkins
    Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>

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() ) );
 }


More information about the Libreoffice-commits mailing list