summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-09-05 23:07:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-06 08:44:18 +0200
commit8a85ed4cbd4b5e3221bb35bdd8c882950b61bd93 (patch)
tree227e903db80057a2da30eec286fb9679ed844496 /vcl/source/control
parentdccd1633a111ba124f9868a4a51579c95200d745 (diff)
Use o3tl::make_unique when var is unique_ptr
Change-Id: I2d8b20aeb686bd4b59fe8dcaf695a17d94a440c9 Reviewed-on: https://gerrit.libreoffice.org/41967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/button.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index e2b62b4a4a2e..705d8d5f0154 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -42,6 +42,7 @@
#include <svdata.hxx>
#include <window.h>
#include <controldata.hxx>
+#include <o3tl/make_unique.hxx>
#include <comphelper/dispatchcommand.hxx>
@@ -92,7 +93,7 @@ mbSmallSymbol(false), maImage(), meImageAlign(ImageAlign::Top), meSymbolAlign(Sy
Button::Button( WindowType nType ) :
Control( nType ),
- mpButtonData( new ImplCommonButtonData )
+ mpButtonData( o3tl::make_unique<ImplCommonButtonData>() )
{
}