summaryrefslogtreecommitdiff
path: root/include/sfx2/thumbnailview.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-30 15:11:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-02 08:26:04 +0200
commitecf6e884d50c9d6220a95ef1a785e9643fb1f01e (patch)
tree68b25edee694af0a0ed78695c60b3c7f66fc07f5 /include/sfx2/thumbnailview.hxx
parent6702a4c56abc2bcd46df65b6eb5ba61e6f1c8dcb (diff)
loplugin:useuniqueptr in ThumbnailView
Change-Id: I1851af82e7f1e56a5b309be55da6dc08b6d34ace Reviewed-on: https://gerrit.libreoffice.org/53704 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/thumbnailview.hxx')
-rw-r--r--include/sfx2/thumbnailview.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx
index 50ea94440b4b..c628d38a2eb1 100644
--- a/include/sfx2/thumbnailview.hxx
+++ b/include/sfx2/thumbnailview.hxx
@@ -12,8 +12,9 @@
#include <sfx2/dllapi.h>
-#include <vector>
#include <functional>
+#include <memory>
+#include <vector>
#include <sfx2/thumbnailviewitem.hxx>
#include <vcl/ctrl.hxx>
@@ -317,7 +318,7 @@ protected:
double mfHighlightTransparence; ///< Transparence of the highlight.
Link<const ThumbnailViewItem*, void> maItemStateHdl;
- ThumbnailItemAttributes* mpItemAttrs;
+ std::unique_ptr<ThumbnailItemAttributes> mpItemAttrs;
std::function<bool (const ThumbnailViewItem*)> maFilterFunc;
};