sw/source/core/text/inftxt.cxx | 5 ----- sw/source/core/text/inftxt.hxx | 11 ++++------- 2 files changed, 4 insertions(+), 12 deletions(-)
New commits: commit b33afce35ae09f6aa2f5830477cf939f9c6096ae Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Aug 17 09:51:38 2025 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sun Aug 17 12:29:38 2025 +0200 These ctors can be default Change-Id: Ib294f520896bb772605014ee3e997259a4ad3c17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189813 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index 173e16b4ba32..9c0f15d62451 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -170,11 +170,6 @@ void SwTextInfo::CtorInitTextInfo( SwTextFrame *pFrame ) } } -SwTextInfo::SwTextInfo( const SwTextInfo &rInf ) - : m_pPara( rInf.m_pPara ) - , m_nTextStart( rInf.GetTextStart() ) -{ } - #if OSL_DEBUG_LEVEL > 0 static void ChkOutDev( const SwTextSizeInfo &rInf ) diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx index 4792ce8399d1..afac3f32ef8d 100644 --- a/sw/source/core/text/inftxt.hxx +++ b/sw/source/core/text/inftxt.hxx @@ -103,18 +103,15 @@ class SwTextInfo { // Implementation in txthyph.cxx friend void SetParaPortion( SwTextInfo *pInf, SwParaPortion *pRoot ); - SwParaPortion *m_pPara; - TextFrameIndex m_nTextStart; // TextOfst for Follows + SwParaPortion* m_pPara{ nullptr }; + TextFrameIndex m_nTextStart{ 0 }; // TextOfst for Follows protected: - SwTextInfo() - : m_pPara(nullptr) - , m_nTextStart(0) - {} + SwTextInfo() = default; public: void CtorInitTextInfo( SwTextFrame *pFrame ); - SwTextInfo( const SwTextInfo &rInf ); + SwTextInfo( const SwTextInfo &rInf ) = default; explicit SwTextInfo( SwTextFrame *pFrame ) { CtorInitTextInfo( pFrame ); } SwParaPortion *GetParaPortion() { return m_pPara; } const SwParaPortion *GetParaPortion() const { return m_pPara; }