summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlimp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-29 17:15:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-29 18:29:16 +0200
commit18e49d2b998ba69d5363d25d285ee6fd188a698d (patch)
tree3e4ef355f9ab35034d1c9fdd83241c4a08e5a8dd /sw/source/filter/xml/xmlimp.cxx
parente9500a04d6aa933692d53fc429b2544f00ecf561 (diff)
expand out SwNodePtr typedef
instead of having a mix of SwNode* and SwNodePtr Also change the call signature of FnForEach_SwNodes - passing around a const& to a pointer is both unnecessary and inefficient. Change-Id: Ib2caab53071f434e85f7dc4795cbde38609c28df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122830 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/xmlimp.cxx')
-rw-r--r--sw/source/filter/xml/xmlimp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index eea1ca435720..59f9e6bea81f 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -953,10 +953,10 @@ void SwXMLImport::MergeListsAtDocumentInsertPosition(SwDoc *pDoc)
sal_uLong index = 1;
// the last node of the main document where we have inserted a document
- const SwNodePtr node1 = pDoc->GetNodes()[m_pSttNdIdx->GetIndex() + 0];
+ SwNode* const node1 = pDoc->GetNodes()[m_pSttNdIdx->GetIndex() + 0];
// the first node of the inserted document
- SwNodePtr node2 = pDoc->GetNodes()[m_pSttNdIdx->GetIndex() + index];
+ SwNode* node2 = pDoc->GetNodes()[m_pSttNdIdx->GetIndex() + index];
if (! (node1 && node2
&& (node1->GetNodeType() == node2->GetNodeType())