diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-08-08 18:55:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-10 16:28:10 +0200 |
commit | b55180df249fe9a2efa145142a9c1ed7c51be849 (patch) | |
tree | 869c498b1b0e7fcf0c83daaa9374d941701c40e0 /sw/source/uibase/fldui | |
parent | b099798085e7b883974928e06644a03ef98cea58 (diff) |
unique_ptr->optional in SwInsertField_Data
Change-Id: Ifcf9cf2b3f731737e12c5316e4fa584cc47fce36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138076
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/fldui')
-rw-r--r-- | sw/source/uibase/fldui/fldmgr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx index 7a860203f63d..ec544bca99ac 100644 --- a/sw/source/uibase/fldui/fldmgr.cxx +++ b/sw/source/uibase/fldui/fldmgr.cxx @@ -893,7 +893,7 @@ SwFieldTypesEnum SwFieldMgr::GetCurTypeId() const // Over string insert field or update bool SwFieldMgr::InsertField( - const SwInsertField_Data& rData) + SwInsertField_Data& rData) { std::unique_ptr<SwField> pField; bool bExp = false; @@ -1487,7 +1487,7 @@ bool SwFieldMgr::InsertField( // insert pCurShell->StartAllAction(); - bool const isSuccess = pCurShell->InsertField2(*pField, rData.m_pAnnotationRange.get()); + bool const isSuccess = pCurShell->InsertField2(*pField, rData.m_oAnnotationRange ? &*rData.m_oAnnotationRange : nullptr); if (isSuccess) { |