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

Jochen Nitschke j.nitschke+logerrit at ok.de
Sat Aug 12 19:37:29 UTC 2017


 svx/source/svdraw/svdedxv.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 853781f96bd03ad95e6fefff02064106232dbcf6
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sat Aug 12 01:33:09 2017 +0200

    try to please ubsan
    
    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<basegfx::B2DRange>´
    > 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 <ci at libreoffice.org>
    Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>

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,


More information about the Libreoffice-commits mailing list