diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2011-10-06 10:12:47 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2011-10-06 10:12:47 +0300 |
commit | 8529da08517b41bd9317714e3216bb6d487b24ee (patch) | |
tree | d9a9313ea27a6373750c6632b81226ba8ffb31e8 /basic | |
parent | ba491984f49ca29bcfe0515145bcef0c12189270 (diff) |
WaE: unreachable code
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxvalue.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx index 8b55561d2acf..7ca1d9c9ed89 100644 --- a/basic/source/sbx/sbxvalue.cxx +++ b/basic/source/sbx/sbxvalue.cxx @@ -1311,9 +1311,16 @@ Lbl_OpIsDouble: else aL.nDouble /= aR.nDouble; break; case SbxPLUS: aL.nDouble += aR.nDouble; break; +#if 0 + // See 'break' on preceding line... this + // is unreachable code. Do not delete this + // #if 0 block unless you know for sure + // the 'break' above is intentional. + // #45465 Date needs with "+" a special handling: forces date type if( GetType() == SbxDATE || rOp.GetType() == SbxDATE ) aL.eType = SbxDATE; +#endif case SbxMINUS: aL.nDouble -= aR.nDouble; break; case SbxNEG: |