diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-18 11:24:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-18 14:27:20 +0100 |
commit | 2a7ee47a44630012a6feb020a054f7e804c306a3 (patch) | |
tree | 664145267797cb9941b9e2e58cf898ae5c6172e0 /svx | |
parent | c18ca36af9ab24bedb240d36d7d95c7a6365252c (diff) |
-Werror=maybe-uninitialized
/home/noel/libo3/svx/source/toolbars/extrusionbar.cxx: In static member
function ‘static void svx::ExtrusionBar::getState(const SdrView*,
SfxItemSet&)’:
/home/noel/libo3/svx/source/toolbars/extrusionbar.cxx:938:25: error:
‘eMetalType’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
938 | if (eMetalType ==
EnhancedCustomShapeMetalType::MetalMSCompatible)
| ^~
/home/noel/libo3/svx/source/toolbars/extrusionbar.cxx:933:31: note:
‘eMetalType’ was declared here
933 | sal_Int16 eMetalType;
| ^~~~~~~~~~
Change-Id: Ie98bb04900d271299cb930bf6d12af46d45ae8c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130128
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/toolbars/extrusionbar.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/toolbars/extrusionbar.cxx b/svx/source/toolbars/extrusionbar.cxx index 10b56ad4b369..a3247cc02666 100644 --- a/svx/source/toolbars/extrusionbar.cxx +++ b/svx/source/toolbars/extrusionbar.cxx @@ -930,7 +930,7 @@ static void getExtrusionSurfaceState( SdrView const * pSdrView, SfxItemSet& rSet if( bMetal ) { nSurface = 3; // metal ODF - sal_Int16 eMetalType; + sal_Int16 eMetalType = EnhancedCustomShapeMetalType::MetalODF; pAny = rGeometryItem.GetPropertyValueByName( sExtrusion, u"MetalType" ); if (pAny) { |