sc/source/ui/view/cellsh.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 7feaf13cb6c73edf201a6653faa9b839bbd33493 Author: Mike Kaganski <[email protected]> AuthorDate: Mon Nov 24 07:23:28 2025 +0100 Commit: Mike Kaganski <[email protected]> CommitDate: Mon Nov 24 09:20:59 2025 +0100 Drop useless static_cast The specific call to GetAttr already returned the properly-typed result; so assigning it to a more generic reference just to cast to the needed type immediately could be avoided. Change-Id: I35eafada0d2bed1eb1faffdc570e5ad2c4565da5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194406 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index fb5068088e02..d5ea064f1e0b 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -1314,8 +1314,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) case SID_OPENDLG_CURRENTCONDFRMT: case SID_OPENDLG_CURRENTCONDFRMT_MANAGER: { - const SfxPoolItem& rItem = rDoc.GetAttr( nPosX, nPosY, nTab, ATTR_CONDITIONAL ); - const ScCondFormatItem& rCondFormatItem = static_cast<const ScCondFormatItem&>(rItem); + const ScCondFormatItem& rCondFormatItem = rDoc.GetAttr(nPosX, nPosY, nTab, ATTR_CONDITIONAL); if ( rCondFormatItem.GetCondFormatData().empty() ) rSet.DisableItem( nWhich );
