[Libreoffice-commits] core.git: vcl/source

Julien Nabet serval2412 at yahoo.fr
Wed Sep 6 06:44:45 UTC 2017


 vcl/source/control/button.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 8a85ed4cbd4b5e3221bb35bdd8c882950b61bd93
Author: Julien Nabet <serval2412 at 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 <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at 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>() )
 {
 }
 


More information about the Libreoffice-commits mailing list