diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:43 +0100 |
commit | abf7b94123a555c4f3e90a0ae41bd7a842d1c1fb (patch) | |
tree | 6e0208e0450308652be1a0a512f98023b35ca489 /sd/source/ui/dlg/sdpreslt.cxx | |
parent | b271fb5ba1a8f7da2120d7037de087b02eb16c91 (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/dlg/sdpreslt.cxx')
-rw-r--r-- | sd/source/ui/dlg/sdpreslt.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/sdpreslt.cxx b/sd/source/ui/dlg/sdpreslt.cxx index 094a93098931..28c06f6e4982 100644 --- a/sd/source/ui/dlg/sdpreslt.cxx +++ b/sd/source/ui/dlg/sdpreslt.cxx @@ -102,7 +102,7 @@ void SdPresLayoutDlg::Reset() } DBG_ASSERT(nName < mnLayoutCount, "Layout not found"); - m_pVS->SelectItem((sal_uInt16)nName + 1); // Indices of the ValueSets start at 1 + m_pVS->SelectItem(static_cast<sal_uInt16>(nName) + 1); // Indices of the ValueSets start at 1 } @@ -159,7 +159,7 @@ void SdPresLayoutDlg::FillValueSet() maLayoutNames.push_back(aLayoutName); Image aBitmap(mpDocSh->GetPagePreviewBitmap(pMaster)); - m_pVS->InsertItem((sal_uInt16)maLayoutNames.size(), aBitmap, aLayoutName); + m_pVS->InsertItem(static_cast<sal_uInt16>(maLayoutNames.size()), aBitmap, aLayoutName); } } @@ -257,7 +257,7 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl, Button*, void) maLayoutNames.push_back(aLayoutName); Image aBitmap(pTemplDocSh->GetPagePreviewBitmap(pMaster)); - m_pVS->InsertItem((sal_uInt16)maLayoutNames.size(), aBitmap, aLayoutName); + m_pVS->InsertItem(static_cast<sal_uInt16>(maLayoutNames.size()), aBitmap, aLayoutName); } } } @@ -272,14 +272,14 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl, Button*, void) { // empty layout maLayoutNames.push_back(maStrNone); - m_pVS->InsertItem( (sal_uInt16) maLayoutNames.size(), + m_pVS->InsertItem( static_cast<sal_uInt16>(maLayoutNames.size()), Image(BMP_FOIL_NONE), maStrNone ); } if (!bCancel) { // select template - m_pVS->SelectItem( (sal_uInt16) maLayoutNames.size() ); + m_pVS->SelectItem( static_cast<sal_uInt16>(maLayoutNames.size()) ); } } } |