sw/source/core/access/acccell.cxx | 12 +++--------- sw/source/core/table/swtable.cxx | 7 +++---- 2 files changed, 6 insertions(+), 13 deletions(-)
New commits: commit 9c2ed54b3d54bd7cd2195ae5ddf3089e7ce5a73e Author: Michael Weghorn <[email protected]> AuthorDate: Tue Mar 3 11:10:20 2026 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Wed Mar 4 07:18:21 2026 +0100 sw: Reduce var scope in SwTableBox::GetName Change-Id: I638c20dad8e7b1d567ba0a0bb1769abaaacc9c3f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200877 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx index 0d737127b621..25979b7d66eb 100644 --- a/sw/source/core/table/swtable.cxx +++ b/sw/source/core/table/swtable.cxx @@ -2239,8 +2239,7 @@ OUString SwTableBox::GetName() const } const SwTable& rTable = m_pStartNode->FindTableNode()->GetTable(); - sal_uInt16 nPos; - OUString sNm, sTmp; + OUString sNm; const SwTableBox* pBox = this; do { const SwTableLine* pLine = pBox->GetUpper(); @@ -2248,8 +2247,8 @@ OUString SwTableBox::GetName() const const SwTableLines* pLines = pLine->GetUpper() ? &pLine->GetUpper()->GetTabLines() : &rTable.GetTabLines(); - nPos = pLines->GetPos( pLine ) + 1; - sTmp = OUString::number( nPos ); + sal_uInt16 nPos = pLines->GetPos(pLine) + 1; + OUString sTmp = OUString::number(nPos); if( !sNm.isEmpty() ) sNm = sTmp + "." + sNm; else commit 127eba3d8418b433f04a774f960a2a1377337c46 Author: Michael Weghorn <[email protected]> AuthorDate: Tue Mar 3 10:58:55 2026 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Wed Mar 4 07:18:13 2026 +0100 sw a11y: Get more concrete SwAccessibleContext right away Avoid complexity of going by the abstract UNO interfaces here. Change-Id: I2b9bcade211cc6fed5243d353cfcbf625b09e6d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200876 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx index fcf9c0ecc58c..69a033ee8f0d 100644 --- a/sw/source/core/access/acccell.cxx +++ b/sw/source/core/access/acccell.cxx @@ -341,15 +341,9 @@ sal_Int32 SAL_CALL SwAccessibleCell::getBackground() if (COL_AUTO == crBack) { - uno::Reference<XAccessible> xAccDoc = getAccessibleParent(); - if (xAccDoc.is()) - { - uno::Reference<XAccessibleComponent> xComponentDoc(xAccDoc, uno::UNO_QUERY); - if (xComponentDoc.is()) - { - crBack = Color(ColorTransparency, xComponentDoc->getBackground()); - } - } + rtl::Reference<SwAccessibleContext> pAccDoc = getAccessibleParentImpl(); + if (pAccDoc.is()) + crBack = Color(ColorTransparency, pAccDoc->getBackground()); } return sal_Int32(crBack); }
