From 18d87f5be8e8a20ff21fbf74e11af277dfcfe49b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 6 Apr 2017 18:31:29 +0200 Subject: Improved loplugin:redundantcast, static_cast on arithmetic types: sfx2 Change-Id: Ic524a0fc2c1038202456dcf0aa51a8a3eb9a70b0 --- sfx2/source/appl/shutdownicon.cxx | 2 +- sfx2/source/control/thumbnailviewacc.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 348556520c92..f6a537ec72bb 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -331,7 +331,7 @@ void ShutdownIcon::StartFileDialog() { ::SolarMutexGuard aGuard; - bool bDirty = ( m_bSystemDialogs != static_cast(SvtMiscOptions().UseSystemFileDialog()) ); + bool bDirty = ( m_bSystemDialogs != SvtMiscOptions().UseSystemFileDialog() ); if ( m_pFileDlg && bDirty ) { diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx index aab1ba555b1d..74b0dc8d56a5 100644 --- a/sfx2/source/control/thumbnailviewacc.cxx +++ b/sfx2/source/control/thumbnailviewacc.cxx @@ -548,7 +548,7 @@ sal_uInt16 ThumbnailViewAcc::getItemCount() const ThumbnailViewItem* ThumbnailViewAcc::getItem (sal_uInt16 nIndex) const { - return mpParent->ImplGetVisibleItem (static_cast(nIndex)); + return mpParent->ImplGetVisibleItem (nIndex); } void ThumbnailViewAcc::ThrowIfDisposed() -- cgit