summaryrefslogtreecommitdiff
path: root/sw/inc/pam.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 10:39:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 21:35:31 +0200
commit0d479babebbed721b0a3cc0c4ba88ea2cc377e21 (patch)
tree47f8af463ee640cf0fb2a20546615ce035ceee75 /sw/inc/pam.hxx
parent566d6accfc443915e6f741e5cb7b8cf244dd7c8b (diff)
introduce SwPosition::SetMark
as part of the process of hiding the internals of SwPosition largely done by doing: git grep -lF 'nContent.SetMark' | xargs perl -pi -e 's/\bnContent\.SetMark/SetMark/g' Change-Id: I7fe558da8fffdd8e56598c3063a1058bd5239977 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137697 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, 2 insertions, 0 deletions
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index 4df18cafb49b..365338e476af 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -81,6 +81,8 @@ struct SAL_WARN_UNUSED SW_DLLPUBLIC SwPosition
sal_Int32 GetContentIndex() const { return nContent.GetIndex(); }
+
+ void SetMark(const sw::mark::IMark* pMark) { nContent.SetMark(pMark); }
};
SW_DLLPUBLIC std::ostream &operator <<(std::ostream& s, const SwPosition& position);