diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-10 15:57:57 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-14 07:38:23 +0100 |
commit | d5c20c6899fb535fa4dd8c85285453d635970cae (patch) | |
tree | 1c87f2185aa42272ff0b3013f4b921e7037ad737 /sfx2 | |
parent | 04fbaff283c52ae42e05f64a5cc353b17a537183 (diff) |
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@yahoo.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/splitwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |