diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-19 14:54:32 -0600 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-02-19 21:00:00 +0000 |
commit | 7f561b9d667de3ec1b5ecef819f553c0cbefb5d6 (patch) | |
tree | f07886d581d74ca3c0b9cac38689d1cd6b302acb /basic | |
parent | bbfc250a9480caf32564cfc5913048d46cbfab1f (diff) |
coverity#735398 Logically dead code
Change-Id: Iadb7fbd8a1fb1c535a3ed78d4b2f7120b29aeb75
Reviewed-on: https://gerrit.libreoffice.org/2270
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/codegen.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/comp/codegen.cxx b/basic/source/comp/codegen.cxx index 77542dd58ae9..c17ecbb6648b 100644 --- a/basic/source/comp/codegen.cxx +++ b/basic/source/comp/codegen.cxx @@ -233,8 +233,8 @@ void SbiCodeGen::Save() case PROPERTY_MODE_SET: ePropType = SbxOBJECT; break; - case PROPERTY_MODE_NONE: - OSL_FAIL( "Illegal PropertyMode PROPERTY_MODE_NONE" ); + default: + OSL_FAIL("Illegal PropertyMode"); break; } OUString aPropName = pProc->GetPropName(); @@ -295,7 +295,7 @@ void SbiCodeGen::Save() t = (SbxDataType) ( t | SbxARRAY ); } // #33677 hand-over an Optional-Info - sal_uInt16 nFlags = SBX_READ; + sal_uInt16 nFlags = SBX_READ; if( pPar->IsOptional() ) { nFlags |= SBX_OPTIONAL; |