summaryrefslogtreecommitdiff
path: root/sd/source/ui/sidebar/PreviewValueSet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/sidebar/PreviewValueSet.cxx')
-rw-r--r--sd/source/ui/sidebar/PreviewValueSet.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/sidebar/PreviewValueSet.cxx b/sd/source/ui/sidebar/PreviewValueSet.cxx
index c15d89d4e231..c145cb25ef1b 100644
--- a/sd/source/ui/sidebar/PreviewValueSet.cxx
+++ b/sd/source/ui/sidebar/PreviewValueSet.cxx
@@ -94,7 +94,7 @@ sal_uInt16 PreviewValueSet::CalculateColumnCount (int nWidth) const
else if (mnMaxColumnCount>0 && nColumnCount>mnMaxColumnCount)
nColumnCount = mnMaxColumnCount;
}
- return (sal_uInt16)nColumnCount;
+ return static_cast<sal_uInt16>(nColumnCount);
}
sal_uInt16 PreviewValueSet::CalculateRowCount (sal_uInt16 nColumnCount) const
@@ -108,7 +108,7 @@ sal_uInt16 PreviewValueSet::CalculateRowCount (sal_uInt16 nColumnCount) const
nRowCount = 1;
}
- return (sal_uInt16)nRowCount;
+ return static_cast<sal_uInt16>(nRowCount);
}
sal_Int32 PreviewValueSet::GetPreferredHeight (sal_Int32 nWidth)