summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-05-08 09:02:30 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-05-08 09:02:30 +0200
commitb4c3a39357efcfd5dfc8f558404ba24c64d911d4 (patch)
tree0c944af41a6a9241346052dfc9265c1b293d6ced
parentad0cf35eff5cf0c7eca870ddd738922431979db7 (diff)
Fix simple cppcheck warning
-rw-r--r--sc/source/core/tool/charthelper.cxx2
-rw-r--r--sc/source/core/tool/scmatrix.cxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/charthelper.cxx b/sc/source/core/tool/charthelper.cxx
index 9f75c5dd3..bc145716f 100644
--- a/sc/source/core/tool/charthelper.cxx
+++ b/sc/source/core/tool/charthelper.cxx
@@ -161,7 +161,7 @@ void ScChartHelper::AdjustRangesOfChartsOnDestinationPage( ScDocument* pSrcDoc,
pDestDoc->GetChartRanges( aChartName, aRangesVector, pSrcDoc );
::std::vector< ScRangeList >::iterator aIt( aRangesVector.begin() );
- for( ; aIt!=aRangesVector.end(); aIt++ )
+ for( ; aIt!=aRangesVector.end(); ++aIt )
{
ScRangeList& rScRangeList( *aIt );
lcl_AdjustRanges( rScRangeList, nSrcTab, nDestTab, pDestDoc->GetTableCount() );
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index b2f482647..31e35f1ee 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -244,6 +244,7 @@ private:
ScMatrixImpl::ScMatrixImpl(SCSIZE nC, SCSIZE nR, ScMatrix::DensityType eType) :
maMat(nR, nC, toMddsDensityType(eType)),
meType(eType),
+ pErrorInterpreter(NULL),
mbCloneIfConst(true)
{
}