From 2e0cf814671e99a1d1a902a5828768c620c4674c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 Apr 2018 15:39:25 +0200 Subject: loplugin:useuniqueptr in ProgressMonitor Change-Id: Ic66e49037c04501a2c39a69f3f8a2a03cb10b5fc Reviewed-on: https://gerrit.libreoffice.org/52884 Tested-by: Jenkins Reviewed-by: Noel Grandin --- UnoControls/source/inc/progressmonitor.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'UnoControls/source/inc/progressmonitor.hxx') diff --git a/UnoControls/source/inc/progressmonitor.hxx b/UnoControls/source/inc/progressmonitor.hxx index 5ab211eaa0ef..e31cdab1de1c 100644 --- a/UnoControls/source/inc/progressmonitor.hxx +++ b/UnoControls/source/inc/progressmonitor.hxx @@ -60,6 +60,7 @@ #include #include +#include #include @@ -276,11 +277,11 @@ private: // private variables private: - ::std::vector < IMPL_TextlistItem* > maTextlist_Top; // Elements before progress + ::std::vector < std::unique_ptr > maTextlist_Top; // Elements before progress css::uno::Reference< css::awt::XFixedText > m_xTopic_Top; // (used, if parameter "beforeProgress"=true in "addText, updateText, removeText") css::uno::Reference< css::awt::XFixedText > m_xText_Top; - ::std::vector < IMPL_TextlistItem* > maTextlist_Bottom; // Elements below of progress + ::std::vector < std::unique_ptr > maTextlist_Bottom; // Elements below of progress css::uno::Reference< css::awt::XFixedText > m_xTopic_Bottom; // (used, if parameter "beforeProgress"=false in "addText, updateText, removeText") css::uno::Reference< css::awt::XFixedText > m_xText_Bottom; -- cgit