sw/source/ui/fldui/fldvar.cxx | 9 --------- 1 file changed, 9 deletions(-)
New commits: commit 22297112c55bc907a8f0b798e0fc7fd5812567c0 Author: Bogdan Buzea <[email protected]> AuthorDate: Mon Oct 21 11:37:00 2024 +0200 Commit: David Gilbert <[email protected]> CommitDate: Mon Nov 4 22:43:09 2024 +0100 tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 767, 777 Change-Id: Ie9a6d6376f5037ee075c95e62c2c7970b720e9a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175309 Tested-by: Jenkins Reviewed-by: David Gilbert <[email protected]> diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx index 6b2bb3eb7c5b..52c045b9af7d 100644 --- a/sw/source/ui/fldui/fldvar.cxx +++ b/sw/source/ui/fldui/fldvar.cxx @@ -763,15 +763,6 @@ void SwFieldVarPage::FillFormatLB(SwFieldTypesEnum nTypeId) break; case SwFieldTypesEnum::Formel: - { - OUString sId(OUString::number(NUMBERFORMAT_ENTRY_NOT_FOUND)); - int nOldIndex = rWidget.get_selected_index(); - rWidget.insert(0, SwResId(FMT_GETVAR_NAME), &sId, nullptr, nullptr); - if (nOldIndex != -1) - rWidget.select(nOldIndex + 1); - } - break; - case SwFieldTypesEnum::Get: { OUString sId(OUString::number(NUMBERFORMAT_ENTRY_NOT_FOUND));
