summaryrefslogtreecommitdiff
path: root/sw/inc/node.hxx
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/inc/node.hxx
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/inc/node.hxx')
-rw-r--r--sw/inc/node.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index 6639aefb5f97..df30db2b9f9e 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -730,9 +730,9 @@ inline SwPlaceholderNode::SwPlaceholderNode(const SwNodeIndex &rWhere)
{
}
-inline SwNodePtr SwNodes::operator[]( sal_uLong n ) const
+inline SwNode* SwNodes::operator[]( sal_uLong n ) const
{
- return static_cast<SwNodePtr>(BigPtrArray::operator[] ( n ));
+ return static_cast<SwNode*>(BigPtrArray::operator[] ( n ));
}
#endif