summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-06-12 23:18:17 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-06-12 23:18:17 +0200
commit5d54fc918fc63c9ac844c6d02df45daa2a86f993 (patch)
tree24dd829737935e967dafa345dbd685db9aa0cb69 /oox
parent5cfb91df40675d81131200d8cce918ae108efb31 (diff)
Some cppcheck cleaning+1TODO (func not implemented)
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/objectformatter.cxx6
-rw-r--r--oox/source/drawingml/customshapegeometry.cxx2
-rw-r--r--oox/source/drawingml/table/tableproperties.cxx2
-rw-r--r--oox/source/drawingml/textrun.cxx4
-rw-r--r--oox/source/ppt/timenodelistcontext.cxx2
-rw-r--r--oox/source/xls/formulaparser.cxx5
-rwxr-xr-xoox/source/xls/sheetdatabuffer.cxx4
7 files changed, 13 insertions, 12 deletions
diff --git a/oox/source/drawingml/chart/objectformatter.cxx b/oox/source/drawingml/chart/objectformatter.cxx
index c6a3c39cf0f4..0b04e006f6a9 100644
--- a/oox/source/drawingml/chart/objectformatter.cxx
+++ b/oox/source/drawingml/chart/objectformatter.cxx
@@ -676,7 +676,7 @@ public:
void convertFormatting(
ShapePropertyMap& rPropMap,
const ModelRef< Shape >& rxShapeProp,
- sal_Int32 nSeriesIdx );
+ sal_Int32 nSeriesIdx ) const;
};
// ----------------------------------------------------------------------------
@@ -931,8 +931,8 @@ EffectFormatter::EffectFormatter( ObjectFormatterData& rData, const AutoFormatEn
DetailFormatterBase( rData, pAutoFormatEntry )
{
}
-
-void EffectFormatter::convertFormatting( ShapePropertyMap& /*rPropMap*/, const ModelRef< Shape >& /*rxShapeProp*/, sal_Int32 /*nSeriesIdx*/ )
+//TODO :
+void EffectFormatter::convertFormatting( ShapePropertyMap& /*rPropMap*/, const ModelRef< Shape >& /*rxShapeProp*/, sal_Int32 /*nSeriesIdx*/ ) const
{
}
diff --git a/oox/source/drawingml/customshapegeometry.cxx b/oox/source/drawingml/customshapegeometry.cxx
index 1c5b67bad35d..3a7277a0b718 100644
--- a/oox/source/drawingml/customshapegeometry.cxx
+++ b/oox/source/drawingml/customshapegeometry.cxx
@@ -483,7 +483,7 @@ static rtl::OUString convertToOOEquation( CustomShapeProperties& rCustomShapePro
while ( nIndex >= 0 );
rtl::OUString aEquation;
- if ( aTokens.size() )
+ if ( !aTokens.empty() )
{
sal_Int32 i, nParameters = aTokens.size() - 1;
if ( nParameters > 3 )
diff --git a/oox/source/drawingml/table/tableproperties.cxx b/oox/source/drawingml/table/tableproperties.cxx
index 87e882dbee0f..a6434c64c294 100644
--- a/oox/source/drawingml/table/tableproperties.cxx
+++ b/oox/source/drawingml/table/tableproperties.cxx
@@ -128,7 +128,7 @@ const TableStyle& TableProperties::getUsedTableStyle( const ::oox::core::XmlFilt
pTableStyle = &const_cast< TableStyle& >( *aIter );
break; // we get the correct style
}
- aIter++;
+ ++aIter;
}
}
if ( !pTableStyle )
diff --git a/oox/source/drawingml/textrun.cxx b/oox/source/drawingml/textrun.cxx
index 843c1a62f562..3c5b99c419fd 100644
--- a/oox/source/drawingml/textrun.cxx
+++ b/oox/source/drawingml/textrun.cxx
@@ -83,13 +83,13 @@ sal_Int32 TextRun::insertAt(
else
{
OUString aLatinFontName, aSymbolFontName;
- sal_Int16 nLatinFontPitch = 0, nSymbolFontPitch = 0;
- sal_Int16 nLatinFontFamily = 0, nSymbolFontFamily = 0;
+ sal_Int16 nSymbolFontFamily = 0, nSymbolFontPitch = 0;
if ( !aTextCharacterProps.maSymbolFont.getFontData( aSymbolFontName, nSymbolFontPitch, nSymbolFontFamily, rFilterBase ) )
xText->insertString( xStart, getText(), sal_False );
else if ( getText().getLength() )
{ // !!#i113673<<<
+ sal_Int16 nLatinFontPitch = 0, nLatinFontFamily = 0;
aTextCharacterProps.maLatinFont.getFontData( aLatinFontName, nLatinFontPitch, nLatinFontFamily, rFilterBase );
sal_Int32 nIndex = 0;
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx
index fac6d04863ad..9aa72213dfe6 100644
--- a/oox/source/ppt/timenodelistcontext.cxx
+++ b/oox/source/ppt/timenodelistcontext.cxx
@@ -647,7 +647,7 @@ namespace oox { namespace ppt {
NodePropertyMap & aProps( mpNode->getNodeProperties() );
end = maTavList.end();
- for(iter = maTavList.begin(), i=0; iter != end; iter++,i++)
+ for(iter = maTavList.begin(), i=0; iter != end; ++iter,++i)
{
// TODO what to do if it is Timing_INFINITE ?
Any aTime = GetTimeAnimateValueTime( iter->msTime );
diff --git a/oox/source/xls/formulaparser.cxx b/oox/source/xls/formulaparser.cxx
index 688c45b1cf3a..7260144ab9ab 100644
--- a/oox/source/xls/formulaparser.cxx
+++ b/oox/source/xls/formulaparser.cxx
@@ -593,6 +593,7 @@ FormulaParserImpl::FormulaParserImpl( const FormulaParser& rParent ) :
mnMaxXlsRow( rParent.getAddressConverter().getMaxXlsAddress().Row ),
mbRelativeAsOffset( false ),
mb2dRefsAs3dRefs( false ),
+ mbSpecialTokens( false ),
mbAllowNulChars( false )
{
// reserve enough space to make resize(), push_back() etc. cheap
@@ -1669,7 +1670,7 @@ bool OoxFormulaParserImpl::importArrayToken( SequenceInputStream& rStrm )
appendRawToken( OPCODE_PUSH ) <<= BiffHelper::readString( rStrm, false );
break;
case BIFF_TOK_ARRAY_BOOL:
- appendRawToken( OPCODE_PUSH ) <<= static_cast< double >( (rStrm.readuInt8() == BIFF_TOK_BOOL_FALSE) ? 0.0 : 1.0 );
+ appendRawToken( OPCODE_PUSH ) <<= (static_cast< double >( (rStrm.readuInt8() == BIFF_TOK_BOOL_FALSE) ? 0.0 : 1.0 ));
break;
case BIFF_TOK_ARRAY_ERROR:
appendRawToken( OPCODE_PUSH ) <<= BiffHelper::calcDoubleFromError( rStrm.readuInt8() );
@@ -2386,7 +2387,7 @@ bool BiffFormulaParserImpl::importArrayToken( BiffInputStream& rStrm )
rStrm.readByteStringUC( false, getTextEncoding(), mbAllowNulChars );
break;
case BIFF_DATATYPE_BOOL:
- appendRawToken( OPCODE_PUSH ) <<= static_cast< double >( (rStrm.readuInt8() == BIFF_TOK_BOOL_FALSE) ? 0.0 : 1.0 );
+ appendRawToken( OPCODE_PUSH ) <<= (static_cast< double >( (rStrm.readuInt8() == BIFF_TOK_BOOL_FALSE) ? 0.0 : 1.0 ));
rStrm.skip( 7 );
break;
case BIFF_DATATYPE_ERROR:
diff --git a/oox/source/xls/sheetdatabuffer.cxx b/oox/source/xls/sheetdatabuffer.cxx
index 6227cfb2f68f..4eb1349e9438 100755
--- a/oox/source/xls/sheetdatabuffer.cxx
+++ b/oox/source/xls/sheetdatabuffer.cxx
@@ -545,7 +545,7 @@ void SheetDataBuffer::finalizeImport()
// write default formatting of remaining row range
writeXfIdRowRangeProperties( maXfIdRowRange );
- for( XfIdRangeListMap::const_iterator aIt = maXfIdRangeLists.begin(), aEnd = maXfIdRangeLists.end(); aIt != aEnd; aIt++ )
+ for( XfIdRangeListMap::const_iterator aIt = maXfIdRangeLists.begin(), aEnd = maXfIdRangeLists.end(); aIt != aEnd; ++aIt )
writeXfIdRangeListProperties( aIt->first.first, aIt->first.second, aIt->second );
// merge all cached merged ranges and update right/bottom cell borders
@@ -824,7 +824,7 @@ void SheetDataBuffer::setCellFormat( const CellModel& rModel, sal_Int32 nNumFmtI
}
else
break;
- aItM++;
+ ++aItM;
}
// update merged ranges for 'center across selection' and 'fill'