From 12bcfec04fcbe6425e327109ad47cd2b2b80d2bd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 5 Nov 2014 10:15:38 +0000 Subject: markup with event type not checker type Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da --- scaddins/source/analysis/analysishelper.cxx | 4 ++-- scaddins/source/datefunc/datefunc.cxx | 3 ++- scaddins/source/pricing/pricing.cxx | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'scaddins') diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index 1dc310b01f59..9e7e8efd62d7 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -598,7 +598,7 @@ double GetYearFrac( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDat case 3: // 3=exact/365 nDaysInYear = 365; break; - //coverity[dead_error_begin] - condition exists to avoid compiler warning + // coverity[dead_error_begin] - following conditions exist to avoid compiler warning default: throw lang::IllegalArgumentException(); } @@ -928,7 +928,7 @@ bool ParseDouble( const sal_Unicode*& rp, double& rRet ) else eS = S_End; break; - //coverity[dead_error_begin] - condition exists to avoid compiler warning + // coverity[dead_error_begin] - following conditions exist to avoid compiler warning case S_End: break; } diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx index e24f65cad031..df62929197d8 100644 --- a/scaddins/source/datefunc/datefunc.cxx +++ b/scaddins/source/datefunc/datefunc.cxx @@ -429,7 +429,8 @@ OUString SAL_CALL ScaDateAddIn::getProgrammaticCategoryName( case ScaCat_Inf: aRet = STR_FROM_ANSI( "Information" ); break; case ScaCat_Math: aRet = STR_FROM_ANSI( "Mathematical" ); break; case ScaCat_Tech: aRet = STR_FROM_ANSI( "Technical" ); break; - default: // to prevent compiler warnings + // coverity[dead_error_begin] - following conditions exist to avoid compiler warning + default: break; } } diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx index 772f1e36626a..8da57250bddc 100644 --- a/scaddins/source/pricing/pricing.cxx +++ b/scaddins/source/pricing/pricing.cxx @@ -438,7 +438,8 @@ OUString SAL_CALL ScaPricingAddIn::getProgrammaticCategoryName( case ScaCat_Inf: aRet = STR_FROM_ANSI( "Information" ); break; case ScaCat_Math: aRet = STR_FROM_ANSI( "Mathematical" ); break; case ScaCat_Tech: aRet = STR_FROM_ANSI( "Technical" ); break; - default: // to prevent compiler warnings + // coverity[dead_error_begin] - following conditions exist to avoid compiler warning + default: break; } } -- cgit