[Libreoffice-commits] core.git: svl/source
Stephan Bergmann
sbergman at redhat.com
Tue May 10 13:05:38 UTC 2016
svl/source/numbers/zformat.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit b401d47ebcc9b9df26ccafb74e065f972f752fcf
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue May 10 15:03:34 2016 +0200
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
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 61da096..d8e27a4 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;
More information about the Libreoffice-commits
mailing list