sw/source/core/unocore/unostyle.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 620e2e1c95acc4d7d6173a9146dbec4c4d6844d4 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Mar 16 15:43:04 2025 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Mar 16 21:09:44 2025 +0100 This GetBoxFormat can use the const version Change-Id: Iabcb2010b79d2e7e34d4f3f5a4d090efc3267408 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183006 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index d95e9eb200af..a42bcf4468c2 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -4534,8 +4534,8 @@ void SwXTextTableStyle::SetPhysical() const std::vector<sal_Int32> aTableTemplateMap = SwTableAutoFormat::GetTableTemplateMap(); for (size_t i=0; i<aTableTemplateMap.size(); ++i) { - SwBoxAutoFormat* pOldBoxFormat = &m_pTableAutoFormat->GetBoxFormat(aTableTemplateMap[i]); - rtl::Reference<SwXTextCellStyle> xCellStyle(pOldBoxFormat->GetXObject()); + const SwBoxAutoFormat& rOldBoxFormat = m_pTableAutoFormat->GetBoxFormat(aTableTemplateMap[i]); + rtl::Reference<SwXTextCellStyle> xCellStyle(rOldBoxFormat.GetXObject()); if (!xCellStyle.is()) continue; SwBoxAutoFormat& rNewBoxFormat = pTableAutoFormat->GetBoxFormat(aTableTemplateMap[i]);