From 853781f96bd03ad95e6fefff02064106232dbcf6 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sat, 12 Aug 2017 01:33:09 +0200 Subject: try to please ubsan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tinderbox Jenkins_Linux_Ubsan fails with: > /home/tdf/lode/jenkins/workspace/lo_ubsan/svx/source/svdraw > /svdedxv.cxx:462:48: > error: default initialization of an object of const type > ´const std::vector´ > without a user-provided default constructor > const std::vector< basegfx::B2DRange > aEmptySelection; > ^ > {} we have to use value initialization instead of default initialization Change-Id: I1e5e1266ac76e27afcbe57bc1414fd6ac774c9be Reviewed-on: https://gerrit.libreoffice.org/41071 Tested-by: Jenkins Reviewed-by: Jochen Nitschke --- svx/source/svdraw/svdedxv.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 57b80c89b002..eb0083b6a699 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -459,7 +459,7 @@ namespace // create local OverlaySelection - this is an integral part of EditText // visualization - const std::vector< basegfx::B2DRange > aEmptySelection; + const std::vector< basegfx::B2DRange > aEmptySelection{}; mpOverlaySelection = new sdr::overlay::OverlaySelection( sdr::overlay::OverlayType::Transparent, rColor, -- cgit