diff options
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/conflictsdlg.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/navipi/content.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/afmtuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/styleuno.cxx | 4 |
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); |