sw/source/core/table/swtable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 42241fe7c59251c6bae2122ebcdf0c451bc66c46 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Sep 6 15:40:45 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Sat Sep 7 00:35:49 2024 +0200 loplugin:redundantcast two of my patches landed close together, and the one caused a clang warning in the other commit 7b16c7db04affde593bfaf75965c4271e4c3ea58 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Wed Sep 4 20:02:14 2024 +0200 use less GetItemSurrogates in SwTable::UpdateFields commit edc20f4d34d102b385ece53a60abad0047661661 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Thu Sep 5 19:30:48 2024 +0200 return SwTableBoxFormat from SwTableBox::GetFrameFormat Change-Id: I49a00ad27e3e8bcb86e16d8ed81f35116a785aea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172971 Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx index 86ea1ae74488..e4d066e4c22d 100644 --- a/sw/source/core/table/swtable.cxx +++ b/sw/source/core/table/swtable.cxx @@ -1721,7 +1721,7 @@ void SwTable::UpdateFields(TableFormulaUpdateFlags eFlags) SwTableBoxes& rTableBoxes = pTableLine->GetTabBoxes(); for (SwTableBox* pTableBox : rTableBoxes) { - SwTableBoxFormat* pTableBoxFormat = static_cast<SwTableBoxFormat*>(pTableBox->GetFrameFormat()); + SwTableBoxFormat* pTableBoxFormat = pTableBox->GetFrameFormat(); if (const SwTableBoxFormula* pItem = pTableBoxFormat->GetItemIfSet( RES_BOXATR_FORMULA, false )) { // SwTableBoxFormula is non-shareable, so const_cast is somewhat OK