sw/source/core/doc/tblafmt.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
New commits: commit 02f5a8389b7f588e89a75a7df0fd060349b7f423 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri May 30 20:05:07 2025 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Jun 6 15:26:18 2025 +0200 move setup code into Impl ctor Change-Id: I55d3c47a5f87033975c9a3a55d4fa4aa978be420 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186052 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx index 785e165720ba..7befdc2fc630 100644 --- a/sw/source/core/doc/tblafmt.cxx +++ b/sw/source/core/doc/tblafmt.cxx @@ -927,6 +927,8 @@ struct SwTableAutoFormatTable::Impl { std::vector<std::unique_ptr<SwTableAutoFormat>> m_AutoFormats; + Impl(); + void Load(); bool Save() const; @@ -1018,6 +1020,10 @@ SwTableAutoFormatTable::~SwTableAutoFormatTable() SwTableAutoFormatTable::SwTableAutoFormatTable() : m_pImpl(new Impl) +{ +} + +SwTableAutoFormatTable::Impl::Impl() { std::unique_ptr<SwTableAutoFormat> pNew(new SwTableAutoFormat( SwStyleNameMapper::GetUIName(RES_POOLTABLESTYLE_DEFAULT, OUString()))); @@ -1040,9 +1046,9 @@ SwTableAutoFormatTable::SwTableAutoFormatTable() } pNew->SetUserDefined(false); - m_pImpl->m_AutoFormats.push_back(std::move(pNew)); + m_AutoFormats.push_back(std::move(pNew)); - m_pImpl->Load(); + Load(); } bool SwTableAutoFormatTable::Save() const