diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-09-05 23:07:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-06 08:44:18 +0200 |
commit | 8a85ed4cbd4b5e3221bb35bdd8c882950b61bd93 (patch) | |
tree | 227e903db80057a2da30eec286fb9679ed844496 | |
parent | dccd1633a111ba124f9868a4a51579c95200d745 (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>
-rw-r--r-- | vcl/source/control/button.cxx | 3 |
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>() ) { } |