diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-30 10:10:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-30 14:27:41 +0200 |
commit | 93099409f3e9894b7a40182f775d76757fa2fb5b (patch) | |
tree | 0ef85877beba2acc6a0764258f9719e3142858eb /sw/source/core/doc/docbm.cxx | |
parent | daa058c714804ffbd2aa1ff20096b4c79bebea0c (diff) |
SwPaM::GetDoc can return a reference instead
and remove discovered redundant null checks
Change-Id: Iac8ad7821d9acfcc9550a96402c02ac248f16f2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103672
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index b9ab931ddc1b..749c473d8c56 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -527,7 +527,7 @@ void IDocumentMarkAccess::DeleteFieldmarkCommand(::sw::mark::IFieldmark const& r } SwPaM pam(sw::mark::FindFieldSep(rMark), rMark.GetMarkStart()); ++pam.GetPoint()->nContent; // skip CH_TXT_ATR_FIELDSTART - pam.GetDoc()->getIDocumentContentOperations().DeleteAndJoin(pam); + pam.GetDoc().getIDocumentContentOperations().DeleteAndJoin(pam); } namespace sw::mark |