diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-23 11:25:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-23 15:03:25 +0100 |
commit | 94d76cef1f71056fab106caf4cc8e65504475615 (patch) | |
tree | bb31a42873eae96bd402a152211dafe1d232bb65 /sc/source/ui/unoobj | |
parent | e0846b7abe78e55bc1e959143d980208077b13ca (diff) |
TypedWhichId create custom get methods in ScPatternAttr
Change-Id: Iaa326332f5806477dd81463e6b6004a962bac934
Reviewed-on: https://gerrit.libreoffice.org/45128
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index a44dc4ae781d..9ef72684da1c 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -2073,12 +2073,12 @@ uno::Any SAL_CALL ScCellRangesBase::getPropertyDefault( const OUString& aPropert { if (pEntry->nWID == SC_WID_UNO_TBLBORD2) ScHelperFunctions::AssignTableBorder2ToAny( aAny, - static_cast<const SvxBoxItem&>(pPattern->GetItem(ATTR_BORDER)), - static_cast<const SvxBoxInfoItem&>(pPattern->GetItem(ATTR_BORDER_INNER)) ); + pPattern->GetItem(ATTR_BORDER), + pPattern->GetItem(ATTR_BORDER_INNER) ); else ScHelperFunctions::AssignTableBorderToAny( aAny, - static_cast<const SvxBoxItem&>(pPattern->GetItem(ATTR_BORDER)), - static_cast<const SvxBoxInfoItem&>(pPattern->GetItem(ATTR_BORDER_INNER)) ); + pPattern->GetItem(ATTR_BORDER), + pPattern->GetItem(ATTR_BORDER_INNER) ); } } break; @@ -2566,8 +2566,8 @@ void ScCellRangesBase::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pE formula::FormulaGrammar::Grammar eGrammar = (bXML ? rDoc.GetStorageGrammar() : formula::FormulaGrammar::mapAPItoGrammar( bEnglish, bXML)); - const std::vector<sal_uInt32>& rIndex = static_cast<const ScCondFormatItem&>( - pPattern->GetItem(ATTR_CONDITIONAL)).GetCondFormatData(); + const std::vector<sal_uInt32>& rIndex = + pPattern->GetItem(ATTR_CONDITIONAL).GetCondFormatData(); sal_uLong nIndex = 0; if(!rIndex.empty()) nIndex = rIndex[0]; @@ -2589,8 +2589,8 @@ void ScCellRangesBase::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pE formula::FormulaGrammar::Grammar eGrammar = (bXML ? rDoc.GetStorageGrammar() : formula::FormulaGrammar::mapAPItoGrammar( bEnglish, bXML)); - sal_uLong nIndex = static_cast<const SfxUInt32Item&>( - pPattern->GetItem(ATTR_VALIDDATA)).GetValue(); + sal_uLong nIndex = + pPattern->GetItem(ATTR_VALIDDATA).GetValue(); rAny <<= uno::Reference<beans::XPropertySet>( new ScTableValidationObj( &rDoc, nIndex, eGrammar )); } |