diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:14 +0100 |
commit | 48db069fd7341ad8128d0e9a5fbcc5b092fe9860 (patch) | |
tree | 1e7e14069f35086928b11f48c0a67dedec8730bc /sfx2/source/dialog/versdlg.cxx | |
parent | 5e7e3c3bd7bd10a9f7216d4d9fa8f2c61bf2db3e (diff) |
More loplugin:cstylecast: sfx2
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: Ia3bed56999f3d684f706ce0bd5be8a2269b06d22
Diffstat (limited to 'sfx2/source/dialog/versdlg.cxx')
-rw-r--r-- | sfx2/source/dialog/versdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx index a5864f2cc84c..c5da37418639 100644 --- a/sfx2/source/dialog/versdlg.cxx +++ b/sfx2/source/dialog/versdlg.cxx @@ -336,7 +336,7 @@ void SfxVersionDialog::Open_Impl() SvTreeListEntry *pEntry = m_pVersionBox->FirstSelected(); sal_uIntPtr nPos = SvTreeList::GetRelPos( pEntry ); - SfxInt16Item aItem( SID_VERSION, (short)nPos+1 ); + SfxInt16Item aItem( SID_VERSION, static_cast<short>(nPos)+1 ); SfxStringItem aTarget( SID_TARGETNAME, "_blank" ); SfxStringItem aReferer( SID_REFERER, "private:user" ); SfxStringItem aFile( SID_FILE_NAME, pObjShell->GetMedium()->GetName() ); @@ -432,7 +432,7 @@ IMPL_LINK( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton, void ) { SfxAllItemSet aSet( pObjShell->GetPool() ); sal_uIntPtr nPos = SvTreeList::GetRelPos( pEntry ); - aSet.Put( SfxInt16Item( SID_VERSION, (short)nPos+1 ) ); + aSet.Put( SfxInt16Item( SID_VERSION, static_cast<short>(nPos)+1 ) ); aSet.Put( SfxStringItem( SID_FILE_NAME, pObjShell->GetMedium()->GetName() ) ); SfxItemSet* pSet = pObjShell->GetMedium()->GetItemSet(); |