From 49d88e99a20f0c746beddc713c03289d5c64546a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 7 Dec 2023 09:05:24 +0000 Subject: cid#1545320 Unused value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I772a5d7608b92634b7cfed1c1e1730eab34bee89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160421 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- tools/source/generic/config.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx index b2eb546c0ef7..cc5cce9c3b16 100644 --- a/tools/source/generic/config.cxx +++ b/tools/source/generic/config.cxx @@ -205,7 +205,6 @@ static void ImplMakeConfigList( ImplConfigData* pData, sal_uInt64 i; const sal_uInt8* pLine; ImplKeyData* pPrevKey = nullptr; - ImplKeyData* pKey; ImplGroupData* pPrevGroup = nullptr; ImplGroupData* pGroup = nullptr; i = 0; @@ -250,7 +249,6 @@ static void ImplMakeConfigList( ImplConfigData* pData, pData->mpFirstGroup = pGroup; pPrevGroup = pGroup; pPrevKey = nullptr; - pKey = nullptr; // filter group names pLine++; @@ -292,7 +290,7 @@ static void ImplMakeConfigList( ImplConfigData* pData, { while ( pGroup->mnEmptyLines ) { - pKey = new ImplKeyData; + ImplKeyData* pKey = new ImplKeyData; pKey->mbIsComment = true; pPrevKey->mpNext = pKey; pPrevKey = pKey; @@ -301,7 +299,7 @@ static void ImplMakeConfigList( ImplConfigData* pData, } // Generate new key - pKey = new ImplKeyData; + ImplKeyData* pKey = new ImplKeyData; pKey->mpNext = nullptr; if ( pPrevKey ) pPrevKey->mpNext = pKey; -- cgit