summaryrefslogtreecommitdiff
path: root/sw/inc/pam.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-25 12:34:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-26 07:54:04 +0200
commit3caade9b4734245471347c7eb20090607d70f7b7 (patch)
tree2673fe74bab981e3451f42dd1d874e04d9e652e1 /sw/inc/pam.hxx
parent5df1bb4b1b222be00d25097660c4ee33542896ea (diff)
simplify some use of SwPosition
by moving the const_cast inside the constructor Change-Id: I1b43a6d3759de250475f0ebc7d65449ff800b570 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137405 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/pam.hxx')
-rw-r--r--sw/inc/pam.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index 49b1aa582c4e..fad762cab0e8 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -41,7 +41,7 @@ struct SAL_WARN_UNUSED SW_DLLPUBLIC SwPosition
SwPosition( const SwNodeIndex &rNode, const SwContentIndex &rContent );
explicit SwPosition( const SwNodeIndex &rNode );
explicit SwPosition( const SwNode& rNode );
- explicit SwPosition( SwContentNode& rNode, const sal_Int32 nOffset = 0 );
+ explicit SwPosition( const SwContentNode& rNode, const sal_Int32 nOffset = 0 );
/**
Returns the document this position is in.