summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-10 15:03:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-10 15:03:34 +0200
commitb401d47ebcc9b9df26ccafb74e065f972f752fcf (patch)
treeec2287a24ab4b36a56c12d28ccae393cd13f0ccd /svl
parent036ed9a613c4affea26713e5762710b6d2ce09bb (diff)
Harmless missing breaks in switch
The fallthrough will only happen if eCodeType is anything but NF_KEY_MMM..., in which case the following cases will fall through to the end of the switch, too. Change-Id: I2fea503a0ce919dad645e3749b2173676fda5373
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zformat.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 61da0969f23a..d8e27a4dbea7 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -3036,6 +3036,7 @@ sal_Int32 SvNumberformat::ImpUseMonthCase( int & io_nState, const ImpSvNumFor& r
default:
; // nothing
}
+ break;
case 2:
// Day of month follows month (the month's 17th)
switch (eCodeType)
@@ -3049,6 +3050,7 @@ sal_Int32 SvNumberformat::ImpUseMonthCase( int & io_nState, const ImpSvNumFor& r
default:
; // Nothing
}
+ break;
case 3:
// Day of month precedes month (17 of month)
switch (eCodeType)
@@ -3062,6 +3064,7 @@ sal_Int32 SvNumberformat::ImpUseMonthCase( int & io_nState, const ImpSvNumFor& r
default:
; // nothing
}
+ break;
}
SAL_WARN( "svl.numbers", "ImpUseMonthCase: unhandled keyword index eCodeType");
return CalendarDisplayCode::LONG_MONTH_NAME;