diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-08 13:15:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-13 06:49:21 +0000 |
commit | 30784e55e484de2790c4b264a50a65acf450c000 (patch) | |
tree | d6370f3ce99a976fe3a175027bfc2441b420ba17 /toolkit/source/controls/tkspinbutton.cxx | |
parent | 982b550541cc68670cad222e921fd62a4c1f232c (diff) |
convert UnoControlModel and friends to use std::mutex
Which means creating a variant of the cppuhelper::OPropertySetHelper
helper class which uses a std::mutex.
Since we can do virtual base classes now (which the original could not), use that and a new helper
class comphelper::UnoImplBase to share
std::mutex m_aMutex;
bool m_bDisposing;
fields that the OPropertySetHelper wants to share with the parent class.
Change-Id: I05ad465a3d3653ed4e109137e3e1c58190da8d97
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148474
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/source/controls/tkspinbutton.cxx')
-rw-r--r-- | toolkit/source/controls/tkspinbutton.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toolkit/source/controls/tkspinbutton.cxx b/toolkit/source/controls/tkspinbutton.cxx index 2040f668859b..9b106ed3a5d6 100644 --- a/toolkit/source/controls/tkspinbutton.cxx +++ b/toolkit/source/controls/tkspinbutton.cxx @@ -41,10 +41,11 @@ class UnoSpinButtonModel : public UnoControlModel { protected: css::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const override; - ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override; + ::cppu::IPropertyArrayHelper& getInfoHelper() override; public: explicit UnoSpinButtonModel( const css::uno::Reference< css::uno::XComponentContext >& i_factory ); + UnoSpinButtonModel(const UnoSpinButtonModel & rOther) : UnoControlModel(rOther) {} rtl::Reference<UnoControlModel> Clone() const override { return new UnoSpinButtonModel( *this ); } |