summaryrefslogtreecommitdiff
path: root/sw/source/uibase/table
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:41 +0100
commit0ae2d98d1f6d29c80bd1ee830db4c333e4ee1e1d (patch)
treed9b77eece17b7b144a4ea50592b639b9f7c87095 /sw/source/uibase/table
parent506856ca50e676520bcc80a8b498355663d0388f (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.cxx6
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 )
{