diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-17 16:18:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-18 20:53:54 +0200 |
commit | 4865d3289ba7200be436c9bac305a4519804ec0c (patch) | |
tree | 838bd398de6a73efbb94240bf18d2d58b23bb253 /include/svtools | |
parent | da0a588b64edb93ea362b246049cd71466c3f018 (diff) |
loplugin:useuniqueptr in SvtValueSet
Change-Id: I5477d58efad0d6cf6bcfcd9670e5296f958fa15f
Reviewed-on: https://gerrit.libreoffice.org/60629
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/valueset.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index 6c0f05960e97..6804a9622c90 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -180,7 +180,7 @@ to be set (before Show) with SetStyle(). *************************************************************************/ typedef std::vector<std::unique_ptr<ValueSetItem>> ValueItemList; -typedef std::vector<SvtValueSetItem*> SvtValueItemList; +typedef std::vector<std::unique_ptr<SvtValueSetItem>> SvtValueItemList; #define WB_ITEMBORDER (WinBits(0x00010000)) #define WB_DOUBLEBORDER (WinBits(0x00020000)) @@ -460,7 +460,7 @@ private: SVT_DLLPRIVATE SvtValueSetItem* ImplGetItem( size_t nPos ); SVT_DLLPRIVATE SvtValueSetItem* ImplGetFirstItem(); SVT_DLLPRIVATE sal_uInt16 ImplGetVisibleItemCount() const; - SVT_DLLPRIVATE void ImplInsertItem( SvtValueSetItem *const pItem, const size_t nPos ); + SVT_DLLPRIVATE void ImplInsertItem( std::unique_ptr<SvtValueSetItem> pItem, const size_t nPos ); SVT_DLLPRIVATE tools::Rectangle ImplGetItemRect( size_t nPos ) const; SVT_DLLPRIVATE void ImplFireAccessibleEvent( short nEventId, const css::uno::Any& rOldValue, const css::uno::Any& rNewValue ); SVT_DLLPRIVATE bool ImplHasAccessibleListeners(); |