diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-12 15:39:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-16 08:22:07 +0200 |
commit | 2e0cf814671e99a1d1a902a5828768c620c4674c (patch) | |
tree | 59de8b1025745214c56c64bb83deaec34dfb96f6 /UnoControls/source/inc/progressmonitor.hxx | |
parent | 2d2906da813362d83bc6a7d7093eefcc9566dbb1 (diff) |
loplugin:useuniqueptr in ProgressMonitor
Change-Id: Ic66e49037c04501a2c39a69f3f8a2a03cb10b5fc
Reviewed-on: https://gerrit.libreoffice.org/52884
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'UnoControls/source/inc/progressmonitor.hxx')
-rw-r--r-- | UnoControls/source/inc/progressmonitor.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 <rtl/ref.hxx> #include <vector> +#include <memory> #include <basecontainercontrol.hxx> @@ -276,11 +277,11 @@ private: // private variables private: - ::std::vector < IMPL_TextlistItem* > maTextlist_Top; // Elements before progress + ::std::vector < std::unique_ptr<IMPL_TextlistItem> > 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<IMPL_TextlistItem> > 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; |