vcl/source/control/button.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 8a85ed4cbd4b5e3221bb35bdd8c882950b61bd93 Author: Julien Nabet <serval2...@yahoo.fr> Date: Tue Sep 5 23:07:13 2017 +0200 Use o3tl::make_unique when var is unique_ptr Change-Id: I2d8b20aeb686bd4b59fe8dcaf695a17d94a440c9 Reviewed-on: https://gerrit.libreoffice.org/41967 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> 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>() ) { } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits