diff options
author | Petr Kraus <petr_kraus@email.cz> | 2013-03-26 18:16:44 +0100 |
---|---|---|
committer | Tomáš Chvátal <tchvatal@suse.cz> | 2013-03-27 10:10:21 +0000 |
commit | 00e9accbc591791b6529105807a2944cd92dde78 (patch) | |
tree | e82d58f4c95f14cc5a0f166df9fa7bb04895e6e4 /sc | |
parent | 3c2010e77ef70a99e4861192b0cb34de1f6ce61e (diff) |
fdo#42781 WaE: unreachable code
Encapsulate whole switch case code by #if
so it does not produce unreachable code when TRUE
Also found second occurence in function overload.
Change-Id: I2f726b4e9cad56850ce360e48f96f45137befe96
Reviewed-on: https://gerrit.libreoffice.org/3066
Reviewed-by: Christoph Brill <egore911@gmail.com>
Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz>
Tested-by: Tomáš Chvátal <tchvatal@suse.cz>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr4.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index bfd949486861..a3d77ffad4b0 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -543,10 +543,10 @@ double ScInterpreter::GetCellValueOrZero( const ScAddress& rPos, const ScBaseCel break; #if OSL_DEBUG_LEVEL > 0 case CELLTYPE_DESTROYED: -#endif SetError(errCellNoValue); fValue = 0.0; break; +#endif } return fValue; @@ -610,10 +610,10 @@ double ScInterpreter::GetCellValueOrZero( ScCellIterator& rIter ) break; #if OSL_DEBUG_LEVEL > 0 case CELLTYPE_DESTROYED: -#endif SetError(errCellNoValue); fValue = 0.0; break; +#endif } return fValue; |