fdo#42781 WaE: unreachable code
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 <76003a65ad2176536237acdd7768cebd8cf87140@gmail.com>
Reviewed-by: Tomáš Chvátal <98a8a889898cf41fe58e8e1fd83f4b868758d7fe@suse.cz>
Tested-by: Tomáš Chvátal <98a8a889898cf41fe58e8e1fd83f4b868758d7fe@suse.cz>

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core