summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-04 08:53:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-04 10:52:41 +0200
commit7aa7f4d9e4294959748bccf9e763154740251635 (patch)
tree79fc3855ce0cc1141abdda514df374cd42ab259c /sc/source/ui
parent6f511a5de909b2fb6cb42b851e0cc90f54fbdd59 (diff)
loplugin:unnecessaryparen include c++ casts
Change-Id: I132d3c66f0562e2c37a02eaf4c168d06c2b473eb Reviewed-on: https://gerrit.libreoffice.org/41874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/docshell/docsh.cxx2
-rw-r--r--sc/source/ui/miscdlgs/conflictsdlg.cxx6
-rw-r--r--sc/source/ui/navipi/content.cxx2
-rw-r--r--sc/source/ui/unoobj/afmtuno.cxx2
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx2
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx4
6 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index c6fd2f0ea317..1eea60ecd5d4 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -1441,7 +1441,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium )
if ( pSet && SfxItemState::SET ==
pSet->GetItemState( SID_FILE_FILTEROPTIONS, true, &pItem ) )
{
- OUString aFilterOption = (static_cast<const SfxStringItem*>(pItem))->GetValue();
+ OUString aFilterOption = static_cast<const SfxStringItem*>(pItem)->GetValue();
lcl_parseHtmlFilterOption(aFilterOption, eLang, bDateConvert);
}
diff --git a/sc/source/ui/miscdlgs/conflictsdlg.cxx b/sc/source/ui/miscdlgs/conflictsdlg.cxx
index 2c40bf2fdeae..f5b9720b5d5e 100644
--- a/sc/source/ui/miscdlgs/conflictsdlg.cxx
+++ b/sc/source/ui/miscdlgs/conflictsdlg.cxx
@@ -581,7 +581,7 @@ IMPL_LINK_NOARG(ScConflictsDlg, UpdateSelectionHdl, Timer *, void)
if ( pAction && ( pAction->GetType() != SC_CAT_DELETE_TABS ) &&
( pAction->IsClickable() || pAction->IsVisible() ) )
{
- const ScBigRange& rBigRange = ( static_cast< const ScChangeAction* >( pAction ) )->GetBigRange();
+ const ScBigRange& rBigRange = static_cast< const ScChangeAction* >( pAction )->GetBigRange();
if ( rBigRange.IsValid( mpOwnDoc ) )
{
bool bSetCursor = !m_pLbConflicts->NextSelected( pEntry );
@@ -687,7 +687,7 @@ void ScConflictsDlg::UpdateView()
// only display shared top content entries
if ( pAction->GetType() == SC_CAT_CONTENT )
{
- ScChangeActionContent* pNextContent = (dynamic_cast<ScChangeActionContent&>(*pAction)).GetNextContent();
+ ScChangeActionContent* pNextContent = dynamic_cast<ScChangeActionContent&>(*pAction).GetNextContent();
if ( pNextContent && aItr->HasSharedAction( pNextContent->GetActionNumber() ) )
{
continue;
@@ -708,7 +708,7 @@ void ScConflictsDlg::UpdateView()
// only display own top content entries
if ( pAction->GetType() == SC_CAT_CONTENT )
{
- ScChangeActionContent* pNextContent = ( dynamic_cast<ScChangeActionContent&>(*pAction) ).GetNextContent();
+ ScChangeActionContent* pNextContent = dynamic_cast<ScChangeActionContent&>(*pAction).GetNextContent();
if ( pNextContent && aItr->HasOwnAction( pNextContent->GetActionNumber() ) )
{
continue;
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 7bccbd5931d7..a3df348c16a0 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -174,7 +174,7 @@ OUString ScContentTree::getAltLongDescText( SvTreeListEntry* pEntry, bool isAltT
case ScContentId::DRAWING:
{
SdrObject* pFound = nullptr;
- ScDocument* pDoc = ( const_cast< ScContentTree* >(this) )->GetSourceDocument();
+ ScDocument* pDoc = const_cast< ScContentTree* >(this)->GetSourceDocument();
SdrIterMode eIter = ( nType == ScContentId::DRAWING ) ? SdrIterMode::Flat : SdrIterMode::DeepNoGroups;
ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer();
SfxObjectShell* pShell = pDoc->GetDocumentShell();
diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx
index 01c78e5484fd..2d492bc6809d 100644
--- a/sc/source/ui/unoobj/afmtuno.cxx
+++ b/sc/source/ui/unoobj/afmtuno.cxx
@@ -756,7 +756,7 @@ uno::Any SAL_CALL ScAutoFormatFieldObj::getPropertyValue( const OUString& aPrope
const SfxPoolItem* pItem = pData->GetItem(nFieldIndex, ATTR_BORDER);
if (pItem)
{
- SvxBoxItem aOuter(*(static_cast<const SvxBoxItem*>(pItem)));
+ SvxBoxItem aOuter(*static_cast<const SvxBoxItem*>(pItem));
SvxBoxInfoItem aInner(ATTR_BORDER_INNER);
if (pEntry->nWID == SC_WID_UNO_TBLBORD2)
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 972617d352ab..3cf1ec0a7861 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -1437,7 +1437,7 @@ ScChart2DataProvider::createDataSource(
{
sal_Int32 nSource(0);
if( aArguments[i].Value >>= nSource )
- eSource = (static_cast< chart::ChartDataRowSource >( nSource ));
+ eSource = static_cast< chart::ChartDataRowSource >( nSource );
}
bOrientCol = (eSource == chart::ChartDataRowSource_COLUMNS);
}
diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx
index 96b90f69ac24..e23568887f47 100644
--- a/sc/source/ui/unoobj/styleuno.cxx
+++ b/sc/source/ui/unoobj/styleuno.cxx
@@ -1307,7 +1307,7 @@ uno::Any ScStyleObj::getPropertyDefault_Impl( const OUString& aPropertyName )
const SfxPoolItem* pItem = &pItemSet->Get( ATTR_BORDER );
if ( pItem )
{
- SvxBoxItem aOuter( *( static_cast<const SvxBoxItem*>( pItem ) ) );
+ SvxBoxItem aOuter( * static_cast<const SvxBoxItem*>( pItem ) );
SvxBoxInfoItem aInner( ATTR_BORDER_INNER );
if (nWhich == SC_WID_UNO_TBLBORD2)
ScHelperFunctions::AssignTableBorder2ToAny( aAny, aOuter, aInner, true);
@@ -1899,7 +1899,7 @@ uno::Any ScStyleObj::getPropertyValue_Impl( const OUString& aPropertyName )
const SfxPoolItem* pItem = &pItemSet->Get( ATTR_BORDER );
if ( pItem )
{
- SvxBoxItem aOuter( *( static_cast<const SvxBoxItem*>( pItem ) ) );
+ SvxBoxItem aOuter( * static_cast<const SvxBoxItem*>( pItem ) );
SvxBoxInfoItem aInner( ATTR_BORDER_INNER );
if (nWhich == SC_WID_UNO_TBLBORD2)
ScHelperFunctions::AssignTableBorder2ToAny( aAny, aOuter, aInner, true);