diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:31:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:31:29 +0200 |
commit | 18d87f5be8e8a20ff21fbf74e11af277dfcfe49b (patch) | |
tree | 98e4fde0403ea91fc8ae4fcc4fcaaff6fd3147a5 /sfx2 | |
parent | e40f3cf3302d397ef0dc2d8f0d308f902be3a98d (diff) |
Improved loplugin:redundantcast, static_cast on arithmetic types: sfx2
Change-Id: Ic524a0fc2c1038202456dcf0aa51a8a3eb9a70b0
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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<bool>(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<sal_uInt16>(nIndex)); + return mpParent->ImplGetVisibleItem (nIndex); } void ThumbnailViewAcc::ThrowIfDisposed() |