summaryrefslogtreecommitdiff
path: root/sd/source/ui/sidebar/MasterPagesSelector.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:43 +0100
commitabf7b94123a555c4f3e90a0ae41bd7a842d1c1fb (patch)
tree6e0208e0450308652be1a0a512f98023b35ca489 /sd/source/ui/sidebar/MasterPagesSelector.cxx
parentb271fb5ba1a8f7da2120d7037de087b02eb16c91 (diff)
More loplugin:cstylecast: sd
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: I144975b94fe2725ac740a953ca2133e99f8a3fce
Diffstat (limited to 'sd/source/ui/sidebar/MasterPagesSelector.cxx')
-rw-r--r--sd/source/ui/sidebar/MasterPagesSelector.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx
index a7b4eb40fccc..53d13a1112e9 100644
--- a/sd/source/ui/sidebar/MasterPagesSelector.cxx
+++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx
@@ -415,9 +415,9 @@ void MasterPagesSelector::NotifyContainerChangeEvent (const MasterPageContainerC
if (nIndex >= 0)
{
PreviewValueSet::SetItemImage (
- (sal_uInt16)nIndex,
+ static_cast<sal_uInt16>(nIndex),
mpContainer->GetPreviewForToken(rEvent.maChildToken));
- PreviewValueSet::Invalidate(PreviewValueSet::GetItemRect((sal_uInt16)nIndex));
+ PreviewValueSet::Invalidate(PreviewValueSet::GetItemRect(static_cast<sal_uInt16>(nIndex)));
}
}
break;
@@ -446,7 +446,7 @@ MasterPagesSelector::UserData* MasterPagesSelector::GetUserData (int nIndex) con
const ::osl::MutexGuard aGuard (maMutex);
if (nIndex>0 && static_cast<unsigned int>(nIndex)<=PreviewValueSet::GetItemCount())
- return static_cast<UserData*>(PreviewValueSet::GetItemData((sal_uInt16)nIndex));
+ return static_cast<UserData*>(PreviewValueSet::GetItemData(static_cast<sal_uInt16>(nIndex)));
else
return nullptr;
}
@@ -460,7 +460,7 @@ void MasterPagesSelector::SetUserData (int nIndex, UserData* pData)
UserData* pOldData = GetUserData(nIndex);
if (pOldData!=nullptr && pOldData!=pData)
delete pOldData;
- PreviewValueSet::SetItemData((sal_uInt16)nIndex, pData);
+ PreviewValueSet::SetItemData(static_cast<sal_uInt16>(nIndex), pData);
}
}