svx/source/customshapes/EnhancedCustomShapeEngine.cxx |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

New commits:
commit ae2f5a5774f01d50c62d0ca4bcc71d90a9a0a23b
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Oct 2 08:17:54 2025 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Thu Oct 2 10:32:43 2025 +0200

    cid#1666419 Uninitialized pointer field
    
    Change-Id: I65e80f0f344d2659d487bd8567f36f9a43a9458b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191759
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx 
b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
index f0f5d560391e..1f90674434cf 100644
--- a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
@@ -53,8 +53,9 @@ using namespace css::uno;
 class SdrObject;
 class SdrObjCustomShape;
 
-EnhancedCustomShapeEngine::EnhancedCustomShapeEngine(const css::uno::Sequence< 
css::uno::Any >& aArguments) :
-    mbForceGroupWithText    ( false )
+EnhancedCustomShapeEngine::EnhancedCustomShapeEngine(const css::uno::Sequence< 
css::uno::Any >& aArguments)
+    : mpCustomShape(nullptr)
+    , mbForceGroupWithText(false)
 {
     for (const css::uno::Any& rArg : aArguments)
     {
@@ -79,9 +80,9 @@ EnhancedCustomShapeEngine::EnhancedCustomShapeEngine(const 
css::uno::Sequence< c
     }
 }
 
-EnhancedCustomShapeEngine::EnhancedCustomShapeEngine(SdrObjCustomShape& 
rShape) :
-    mpCustomShape(&rShape),
-    mbForceGroupWithText(false)
+EnhancedCustomShapeEngine::EnhancedCustomShapeEngine(SdrObjCustomShape& rShape)
+    : mpCustomShape(&rShape)
+    , mbForceGroupWithText(false)
 {
 }
 

Reply via email to