diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-06-13 21:37:59 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-06-18 16:43:45 +0200 |
commit | 9037e84e429081928490454ffcaa84b8dfed2851 (patch) | |
tree | 8b08216a822e5225a63f204885d2efddc5c37341 /sc/source | |
parent | b698366345642f8e5a052dcee8f370f5ba67c565 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/excel/excform.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/lotus/lotform.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/XMLStylesExportHelper.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/excform.cxx b/sc/source/filter/excel/excform.cxx index 5e1f53dc0..7ac6cf3d9 100644 --- a/sc/source/filter/excel/excform.cxx +++ b/sc/source/filter/excel/excform.cxx @@ -1564,7 +1564,6 @@ void ExcelToSc::DoMulArgs( DefTokenId eId, sal_uInt8 nAnz ) if( nAnz > 0 ) { // attention: 0 = last parameter, nAnz-1 = first parameter - sal_Int16 nNull = -1; // skip this parameter sal_Int16 nSkipEnd = -1; // skip all parameters <= nSkipEnd sal_Int16 nLast = nAnz - 1; @@ -1591,6 +1590,7 @@ void ExcelToSc::DoMulArgs( DefTokenId eId, sal_uInt8 nAnz ) // [Parameter{;Parameter}] if( nLast > nSkipEnd ) { + sal_Int16 nNull = -1; // skip this parameter aPool << eParam[ nLast ]; for( nLauf = nLast - 1 ; nLauf > nSkipEnd ; nLauf-- ) { diff --git a/sc/source/filter/lotus/lotform.cxx b/sc/source/filter/lotus/lotform.cxx index 413c9d3df..c05439c57 100644 --- a/sc/source/filter/lotus/lotform.cxx +++ b/sc/source/filter/lotus/lotform.cxx @@ -2034,8 +2034,6 @@ DefTokenId lcl_KnownAddIn( const ByteString& sTest ) eId=ocArcCot; else if(sTest== "COT") eId=ocCot; - else if(sTest== "ACOT") - eId=ocArcCot; else if(sTest== "TRUNC") eId=ocTrunc; else if(sTest== "GEOMEAN") diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx b/sc/source/filter/xml/XMLStylesExportHelper.cxx index 7083ca604..f9cc84579 100644 --- a/sc/source/filter/xml/XMLStylesExportHelper.cxx +++ b/sc/source/filter/xml/XMLStylesExportHelper.cxx @@ -798,7 +798,9 @@ sal_Bool ScMyFormatRange::operator<(const ScMyFormatRange& rRange) const ScFormatRangeStyles::ScFormatRangeStyles() : aTables(), aStyleNames(), - aAutoStyleNames() + aAutoStyleNames(), + pRowDefaults(0), + pColDefaults(0) { } |