sw/inc/ndtxt.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 1f9bf6cf6eb5026b4c5c7c5bb4493afc00ceb598 Author: Mike Kaganski <[email protected]> AuthorDate: Thu Oct 9 13:35:54 2025 +0200 Commit: Mike Kaganski <[email protected]> CommitDate: Fri Oct 10 17:46:12 2025 +0200 Use IsTextNode instead of explicit check of m_nNodeType Change-Id: Iaa46311bcffbc2f2ebea690899d0176dc5bb7385 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192099 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx index 78115ffadf8b..93dfd3068996 100644 --- a/sw/inc/ndtxt.hxx +++ b/sw/inc/ndtxt.hxx @@ -931,12 +931,12 @@ inline SwTextFormatColl* SwTextNode::GetTextColl() const /// Inline methods from Node.hxx inline SwTextNode *SwNode::GetTextNode() { - return SwNodeType::Text == m_nNodeType ? static_cast<SwTextNode*>(this) : nullptr; + return IsTextNode() ? static_cast<SwTextNode*>(this) : nullptr; } inline const SwTextNode *SwNode::GetTextNode() const { - return SwNodeType::Text == m_nNodeType ? static_cast<const SwTextNode*>(this) : nullptr; + return IsTextNode() ? static_cast<const SwTextNode*>(this) : nullptr; } inline void
