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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Feb 14 06:38:57 UTC 2019


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

New commits:
commit d5c20c6899fb535fa4dd8c85285453d635970cae
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Feb 10 15:57:57 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Thu Feb 14 07:38:23 2019 +0100

    No need to downcast integer type here
    
    Change-Id: I99ed9bf6443c8b3c08d9ee45d171751d603c1125
    Reviewed-on: https://gerrit.libreoffice.org/67633
    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 9a97c291aaed..c4396069e705 100644
--- a/sfx2/source/dialog/splitwin.cxx
+++ b/sfx2/source/dialog/splitwin.cxx
@@ -240,8 +240,8 @@ SfxSplitWindow::SfxSplitWindow( vcl::Window* pParent, SfxChildAlignment eAl,
                 pEmptyWin->bFadeIn = true;
             bPinned = true; // always assume pinned - floating mode not used anymore
 
-            sal_uInt16 nCount = static_cast<sal_uInt16>(aWinData.getToken(0, ',', nIdx).toInt32());
-            for ( sal_uInt16 n=0; n<nCount; n++ )
+            const sal_Int32 nCount{ aWinData.getToken(0, ',', nIdx).toInt32() };
+            for ( sal_Int32 n=0; n<nCount; ++n )
             {
                 std::unique_ptr<SfxDock_Impl> pDock(new SfxDock_Impl);
                 pDock->pWin = nullptr;


More information about the Libreoffice-commits mailing list