summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-12 08:22:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-15 07:28:35 +0100
commit397d5cbc3c04da7693e2e1f3e99b0d8e431bfff2 (patch)
treed064789b3a170293ff0f57b7f2b1b1b79159b18b /include
parenta2f86708a5740ce9fd2a3a6ab69685d8fb53dd6c (diff)
loplugin:useuniqueptr in Cursor
Change-Id: I5de300709409311b7a1d451ee1d314596cf2e879 Reviewed-on: https://gerrit.libreoffice.org/47836 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/cursor.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/cursor.hxx b/include/vcl/cursor.hxx
index b5c547f68463..0a0deb3e84bc 100644
--- a/include/vcl/cursor.hxx
+++ b/include/vcl/cursor.hxx
@@ -25,6 +25,7 @@
#include <vcl/dllapi.h>
#include <vcl/vclptr.hxx>
#include <rtl/ustring.hxx>
+#include <memory>
class Timer;
struct ImplCursorData;
@@ -44,7 +45,7 @@ namespace vcl
class VCL_DLLPUBLIC Cursor
{
private:
- ImplCursorData* mpData;
+ std::unique_ptr<ImplCursorData> mpData;
VclPtr<vcl::Window> mpWindow; // only for shadow cursor
long mnSlant;
Size maSize;