sw/source/ui/vba/vbaformfields.cxx | 1 - sw/source/ui/vba/vbaformfields.hxx | 3 --- 2 files changed, 4 deletions(-)
New commits: commit 0232d4d19858f76fd63b8e525a835bd6fbcd3b8a Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Nov 10 12:24:23 2022 +0200 Commit: Justin Luth <jl...@mail.com> CommitDate: Thu Nov 10 16:30:26 2022 +0100 private field 'm_xModel' is not used [-Werror,-Wunused-private-field] ever since commit 2a26f136a36791c06caa895d5a25f4633fd10651 Author: Justin Luth <justin.l...@collabora.com> Date: Wed Nov 9 17:02:03 2022 -0500 tdf#151548 vba FormFields: Add basic word::XFormField support Plus, this code is std::move'ing a value into a "&" field, which is very wrong Change-Id: Ia8bbf6e0eaa524ca0f5bbf7624f4b9555920f993 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142545 Tested-by: Jenkins Reviewed-by: Justin Luth <jl...@mail.com> diff --git a/sw/source/ui/vba/vbaformfields.cxx b/sw/source/ui/vba/vbaformfields.cxx index f4bdd8cb6470..cf82f72d7a01 100644 --- a/sw/source/ui/vba/vbaformfields.cxx +++ b/sw/source/ui/vba/vbaformfields.cxx @@ -196,7 +196,6 @@ SwVbaFormFields::SwVbaFormFields(const uno::Reference<XHelperInterface>& xParent : SwVbaFormFields_BASE(xParent, xContext, uno::Reference<container::XIndexAccess>( new FormFieldCollectionHelper(xParent, xContext, xModel))) - , m_xModel(std::move(xModel)) { } diff --git a/sw/source/ui/vba/vbaformfields.hxx b/sw/source/ui/vba/vbaformfields.hxx index 22160dfb61cb..59226e5ea6f8 100644 --- a/sw/source/ui/vba/vbaformfields.hxx +++ b/sw/source/ui/vba/vbaformfields.hxx @@ -27,9 +27,6 @@ typedef CollTestImplHelper<ooo::vba::word::XFormFields> SwVbaFormFields_BASE; class SwVbaFormFields : public SwVbaFormFields_BASE { -private: - const css::uno::Reference<css::frame::XModel>& m_xModel; - public: /// @throws css::uno::RuntimeException SwVbaFormFields(const css::uno::Reference<ov::XHelperInterface>& xParent,