sw/inc/tblafmt.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 5bca8e00352139ffaa1cbe65780ef61f1e10f4a6 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri May 30 20:39:08 2025 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Jun 11 14:22:05 2025 +0200 make m_aAutoFormat copy on write Change-Id: I475821bca12037171ae0452a1ee6712524761096 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186058 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/inc/tblafmt.hxx b/sw/inc/tblafmt.hxx index 7f2ce1961872..7e10a3c1135e 100644 --- a/sw/inc/tblafmt.hxx +++ b/sw/inc/tblafmt.hxx @@ -98,7 +98,7 @@ public: class SW_DLLPUBLIC SwBoxAutoFormat { private: - SwAutoFormatProps m_aAutoFormat; + o3tl::cow_wrapper<SwAutoFormatProps> m_aAutoFormat; // associated UNO object, if such exists unotools::WeakReference<SwXTextCellStyle> m_xAutoFormatUnoObject; @@ -108,8 +108,8 @@ public: { return m_xAutoFormatUnoObject; } void SetXObject(rtl::Reference<SwXTextCellStyle> const& xObject); - const SwAutoFormatProps& GetProps() const { return m_aAutoFormat; } - SwAutoFormatProps& GetProps() { return m_aAutoFormat; } + const SwAutoFormatProps& GetProps() const { return *m_aAutoFormat; } + SwAutoFormatProps& GetProps() { return *m_aAutoFormat; } }; enum class SwTableAutoFormatUpdateFlags { Char = 1, Box = 2 };