summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdmodel.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:55 +0100
commitc049c76fc521f2b55b39a6e9eb0f0092bcf6ef77 (patch)
tree2bc2c059a6f6a175a0c0e5321887adc077fef419 /svx/source/svdraw/svdmodel.cxx
parent0ae2d98d1f6d29c80bd1ee830db4c333e4ee1e1d (diff)
More loplugin:cstylecast: svx
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: I100e6c14cbf1d780f0e5ebca6b0c9e71ce1caaf7
Diffstat (limited to 'svx/source/svdraw/svdmodel.cxx')
-rw-r--r--svx/source/svdraw/svdmodel.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index 2b56e8703aa5..c21866ed41f9 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -636,7 +636,7 @@ void SdrModel::ClearModel(bool bCalledFromDestructor)
sal_Int32 nCount=GetPageCount();
for (i=nCount-1; i>=0; i--)
{
- DeletePage( (sal_uInt16)i );
+ DeletePage( static_cast<sal_uInt16>(i) );
}
maPages.clear();
PageListChanged();
@@ -645,7 +645,7 @@ void SdrModel::ClearModel(bool bCalledFromDestructor)
nCount=GetMasterPageCount();
for(i=nCount-1; i>=0; i--)
{
- DeleteMasterPage( (sal_uInt16)i );
+ DeleteMasterPage( static_cast<sal_uInt16>(i) );
}
maMaPag.clear();
MasterPageListChanged();
@@ -1639,7 +1639,7 @@ void SdrModel::Merge(SdrModel& rSourceModel,
// get the drawing pages
if (bInsPages) {
sal_uInt16 nSourcePos=nFirstPageNum;
- sal_uInt16 nMergeCount=sal_uInt16(std::abs((long)((long)nFirstPageNum-nLastPageNum))+1);
+ sal_uInt16 nMergeCount=sal_uInt16(std::abs(static_cast<long>(static_cast<long>(nFirstPageNum)-nLastPageNum))+1);
if (nDestPos>GetPageCount()) nDestPos=GetPageCount();
while (nMergeCount>0) {
SdrPage* pPg=nullptr;