summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorBogdan Buzea <buzea.bogdan@libreoffice.org>2024-10-21 11:37:00 +0200
committerDavid Gilbert <freedesktop@treblig.org>2024-11-04 22:43:09 +0100
commit22297112c55bc907a8f0b798e0fc7fd5812567c0 (patch)
treed20bad7bf83d502b379c72ad6ab41bf8ec5b0136 /sw/source/ui
parent2143961a14c39be485f3a99dfe82b0c0a215b41e (diff)
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 <freedesktop@treblig.org>
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/fldui/fldvar.cxx9
1 files changed, 0 insertions, 9 deletions
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));