From 1d59238221cb3fcc97a5516fc94429a3b32e04f4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 17 Sep 2018 16:12:42 +0200 Subject: loplugin:useuniqueptr in ValueSet Change-Id: I0c0e32179fe1bee60c63b5db36759d5362c4402d Reviewed-on: https://gerrit.libreoffice.org/60628 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svtools/valueset.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/svtools') diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index 5c06a0aac22e..6c0f05960e97 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -179,7 +179,7 @@ to be set (before Show) with SetStyle(). *************************************************************************/ -typedef std::vector ValueItemList; +typedef std::vector> ValueItemList; typedef std::vector SvtValueItemList; #define WB_ITEMBORDER (WinBits(0x00010000)) @@ -261,7 +261,7 @@ private: SVT_DLLPRIVATE ValueSetItem* ImplGetItem( size_t nPos ); SVT_DLLPRIVATE ValueSetItem* ImplGetFirstItem(); SVT_DLLPRIVATE sal_uInt16 ImplGetVisibleItemCount() const; - SVT_DLLPRIVATE void ImplInsertItem( ValueSetItem *const pItem, const size_t nPos ); + SVT_DLLPRIVATE void ImplInsertItem( std::unique_ptr 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(); -- cgit