diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2023-08-07 10:42:35 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2023-08-07 15:19:36 +0200 |
commit | 6c3989b3a09c4b43c2c5f548c8ae9248db901dc6 (patch) | |
tree | b4e381753bb2a1d4b0da75c660754f2c5d420526 | |
parent | 9a41532ffc725706b27e20d2f4153cdde5d23e9f (diff) |
refactor: remove dead docnode hint code
- the deleted code should not have side effects
- it had been used to find an actual node to return in the hint before
9b68ce7b0f2326ec540717ec5c8207825403774e, which removed the need to
return the node
Change-Id: I8f28765a5dd9355e7fdc7a7ff069a76b714287fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155419
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
-rw-r--r-- | sw/source/core/table/swtable.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx index 04d58363b97d..c111a86ccd58 100644 --- a/sw/source/core/table/swtable.cxx +++ b/sw/source/core/table/swtable.cxx @@ -2282,16 +2282,7 @@ bool SwTable::GetInfo( SfxPoolItem& rInfo ) const case RES_AUTOFMT_DOCNODE: { const SwTableNode* pNode = GetTableNode(); - if (pNode && &pNode->GetNodes() == static_cast<SwAutoFormatGetDocNode&>(rInfo).pNodes) - { - if (!m_TabSortContentBoxes.empty()) - { - SwNodeIndex aIdx( *m_TabSortContentBoxes[0]->GetSttNd() ); - GetFrameFormat()->GetDoc()->GetNodes().GoNext( &aIdx ); - } - return false; - } - break; + return !(pNode && &pNode->GetNodes() == static_cast<SwAutoFormatGetDocNode&>(rInfo).pNodes); } case RES_FINDNEARESTNODE: if( GetFrameFormat() && |