summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docbm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 14:47:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-05 09:17:55 +0200
commit8dd67096d9472aaf46c9db59921b65d92f8c3827 (patch)
tree6104de80a71e565c77484d92418e6ee527aae109 /sw/source/core/doc/docbm.cxx
parentfa5ba20b953da85ad387449cf613d7be59c3d5c2 (diff)
use more SwPosition::Assign
as part of the process of hiding the internals of SwPosition these are still the easy ones, i.e. no functional change intended Change-Id: Ibb2adf17de47bab5374730b508d9c020991a945e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137802 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r--sw/source/core/doc/docbm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 4102c97aa25c..215c728e65a2 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -1458,13 +1458,13 @@ namespace sw::mark
// Remove the old fieldmark and create a new one with the new type
if (rNewType == ODF_FORMDROPDOWN || rNewType == ODF_FORMCHECKBOX)
{
- SwPosition aNewPos (aPaM.GetPoint()->nNode, aPaM.GetPoint()->nContent);
+ SwPosition aNewPos (*aPaM.GetPoint());
deleteFieldmarkAt(aNewPos);
return makeNoTextFieldBookmark(aPaM, sName, rNewType);
}
else if(rNewType == ODF_FORMDATE)
{
- SwPosition aPos (aPaM.GetPoint()->nNode, aPaM.GetPoint()->nContent);
+ SwPosition aPos (*aPaM.GetPoint());
SwPaM aNewPaM(pFieldmark->GetMarkStart(), pFieldmark->GetMarkEnd());
deleteFieldmarkAt(aPos);
// HACK: hard-code the separator position here at the start because