diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-10 14:49:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-10 14:57:26 +0200 |
commit | 0f3ac23d732239b50207cfbb8cf810ef41fa9835 (patch) | |
tree | a338a71c043dfa71e9de3c6cdc5b239b5f4b04a3 /stoc | |
parent | 356cef643585469d17232543e4cb98ee4f3c225b (diff) |
Insert explicit "break" when falling through to empty next case
...which itself only contains a "break" (or nothing at all at the end of the
"switch"), as otherwise Clang -Wimplicit-fallthrough would warn about these.
Change-Id: I25c1cf2ca74dfeba7ca0385ca8f1c1bf30bbf91b
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/typeconv/convert.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx index 1c864f0864d1..e7795c5fc66a 100644 --- a/stoc/source/typeconv/convert.cxx +++ b/stoc/source/typeconv/convert.cxx @@ -120,6 +120,7 @@ static bool getNumericValue( double & rfVal, const OUString & rStr ) bNeg = true; else if (trim[0] != '+') return false; + break; case 1: // 0x... break; default: @@ -200,6 +201,7 @@ static bool getHyperValue( sal_Int64 & rnVal, const OUString & rStr ) bNeg = true; else if (trim[0] != '+') return false; + break; case 1: // 0x... break; default: @@ -728,9 +730,8 @@ Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestina switch (aSourceClass) { default: - { aRet <<= (toDouble( rVal ) != 0.0); - } + break; case TypeClass_ENUM: // exclude enums break; |