diff options
author | Hossein <hossein@libreoffice.org> | 2023-05-16 00:50:48 +0200 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2023-05-16 13:44:00 +0200 |
commit | c01639c556276e496d9e762468cad6b27f9ed0f4 (patch) | |
tree | 8dbac52e2571e5d0328167d8873757bf9382fcea /cui/source/inc/connect.hxx | |
parent | 8107a65b17e5eaab41027cfd69ae227fb2e26ee8 (diff) |
Simplify the code by introducing a new function
There were a lot of repetitions in the code of the function
SvxConnectionPage::Reset(). This patch Simplifies this function by
introducing SvxConnectionPage::lcl_SetMetricValueAndSave() to do the
repetetive instructions.
Change-Id: I337ccf2281fd8d1bd9b1948beb6d31b2306eb339
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151820
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'cui/source/inc/connect.hxx')
-rw-r--r-- | cui/source/inc/connect.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/inc/connect.hxx b/cui/source/inc/connect.hxx index 8b7119f0dcaf..9aa2cc92dabb 100644 --- a/cui/source/inc/connect.hxx +++ b/cui/source/inc/connect.hxx @@ -55,6 +55,8 @@ private: DECL_LINK(ChangeAttrEditHdl_Impl, weld::MetricSpinButton&, void); DECL_LINK(ChangeAttrListBoxHdl_Impl, weld::ComboBox&, void); + template<class T> + void lcl_SetMetricValueAndSave_new(const SfxItemSet *rAttrs, weld::MetricSpinButton &rField, TypedWhichId<T> nWhich); public: SvxConnectionPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs); |