diff options
author | Joseph Powers <jpowers27@cox.net> | 2010-12-01 18:50:57 -0800 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2010-12-01 19:43:11 -0800 |
commit | a2fe500e61a73dd0dece90c7264ebba57c07088e (patch) | |
tree | 3f9d9e0ab7726069fba5492c8ac4280b6d441f22 /sc/source/filter/xcl97 | |
parent | 98d20e26be83337f018ca036aab2a40f6cb90aba (diff) |
remove a compiler warning
The compiler was thinking that you could get to the end without a return.
It was wrong... but this will shut it up.
Diffstat (limited to 'sc/source/filter/xcl97')
-rw-r--r-- | sc/source/filter/xcl97/XclExpChangeTrack.cxx | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx index dfb157653028..5d460bf44d77 100644 --- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx +++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx @@ -949,24 +949,26 @@ static const char* lcl_GetType( XclExpChTrData* pData ) { switch( pData->nType ) { - case EXC_CHTR_TYPE_RK: - case EXC_CHTR_TYPE_DOUBLE: - return "n"; - break; - case EXC_CHTR_TYPE_FORMULA: - { - ScFormulaCell* pFormulaCell = const_cast< ScFormulaCell* >( pData->mpFormulaCell ); - const char* sType; - OUString sValue; - XclXmlUtils::GetFormulaTypeAndValue( *pFormulaCell, sType, sValue ); - return sType; - } - break; - case EXC_CHTR_TYPE_STRING: - return "inlineStr"; - default: - return "*unknown*"; + case EXC_CHTR_TYPE_RK: + case EXC_CHTR_TYPE_DOUBLE: + return "n"; + break; + case EXC_CHTR_TYPE_FORMULA: + { + ScFormulaCell* pFormulaCell = const_cast< ScFormulaCell* >( pData->mpFormulaCell ); + const char* sType; + OUString sValue; + XclXmlUtils::GetFormulaTypeAndValue( *pFormulaCell, sType, sValue ); + return sType; + } + break; + case EXC_CHTR_TYPE_STRING: + return "inlineStr"; + break; + default: + break; } + return "*unknown*"; } static void lcl_WriteCell( XclExpXmlStream& rStrm, sal_Int32 nElement, const ScAddress& rPosition, XclExpChTrData* pData ) |