diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:41 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:41 +0100 |
commit | 0ae2d98d1f6d29c80bd1ee830db4c333e4ee1e1d (patch) | |
tree | d9b77eece17b7b144a4ea50592b639b9f7c87095 /sw/source/uibase/table | |
parent | 506856ca50e676520bcc80a8b498355663d0388f (diff) |
More loplugin:cstylecast: sw
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I0f49d21dfdf82742f11b27709f74294feb1e419e
Diffstat (limited to 'sw/source/uibase/table')
-rw-r--r-- | sw/source/uibase/table/tablemgr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/table/tablemgr.cxx b/sw/source/uibase/table/tablemgr.cxx index 54d770158708..d848cbbca003 100644 --- a/sw/source/uibase/table/tablemgr.cxx +++ b/sw/source/uibase/table/tablemgr.cxx @@ -132,7 +132,7 @@ void SwTableFUNC::SetColWidth(sal_uInt16 nNum, SwTwips nNewWidth ) bCurrentOnly = true; SwTwips nWidth = GetColWidth(nNum); - int nDiff = (int)(nNewWidth - nWidth); + int nDiff = static_cast<int>(nNewWidth - nWidth); if( !nNum ) aCols[ GetRightSeparator(0) ] += nDiff; else if( nNum < GetColCount() ) @@ -141,7 +141,7 @@ void SwTableFUNC::SetColWidth(sal_uInt16 nNum, SwTwips nNewWidth ) aCols[ GetRightSeparator(nNum) ] += nDiff; else { - int nDiffLeft = nDiff - (int)GetColWidth(nNum + 1) + (int)MINLAY; + int nDiffLeft = nDiff - static_cast<int>(GetColWidth(nNum + 1)) + int(MINLAY); aCols[ GetRightSeparator(nNum) ] += (nDiff - nDiffLeft); aCols[ GetRightSeparator(nNum - 1) ] -= nDiffLeft; } @@ -346,7 +346,7 @@ sal_uInt16 SwTableFUNC::GetColCount() const int SwTableFUNC::GetRightSeparator(int nNum) const { - OSL_ENSURE( nNum < (int)GetColCount() ,"Index out of range"); + OSL_ENSURE( nNum < static_cast<int>(GetColCount()) ,"Index out of range"); int i = 0; while( nNum >= 0 ) { |