svx/source/toolbars/extrusionbar.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2a7ee47a44630012a6feb020a054f7e804c306a3 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Feb 18 11:24:46 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Feb 18 14:27:20 2022 +0100 -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.gran...@collabora.co.uk> 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) {