diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-05-19 15:09:08 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-05-19 15:10:13 +0200 |
commit | 2b657f5844f9362660c253322e4c4059d5875062 (patch) | |
tree | 1c87a789b24a38f85af13b6d76d370abbf6a7974 /sc | |
parent | 891f032e85276a86783787ecfeb5a462db34093b (diff) |
Fix Prefer prefix ++/-- operators for non-primitive types
Change-Id: I4ebb1027151c3bc34f81fb1e13de6c4c5cfed54d
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dpdimsave.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/dpgroup.cxx | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/core/data/dpdimsave.cxx b/sc/source/core/data/dpdimsave.cxx index 80257bed3e7b..b9ce099d3691 100644 --- a/sc/source/core/data/dpdimsave.cxx +++ b/sc/source/core/data/dpdimsave.cxx @@ -185,7 +185,7 @@ rtl::OUString ScDPSaveGroupDimension::CreateGroupName(const rtl::OUString& rPref // look for existing groups for ( ScDPSaveGroupItemVec::const_iterator aIter(aGroups.begin()); - aIter != aGroups.end() && !bExists; aIter++ ) + aIter != aGroups.end() && !bExists; ++aIter ) if (aIter->GetGroupName().equals(aGroupName)) //! ignore case bExists = true; diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx index a0bb5d9c5ad3..9b5bf9b5763c 100644 --- a/sc/source/core/data/dpgroup.cxx +++ b/sc/source/core/data/dpgroup.cxx @@ -298,7 +298,7 @@ void ScDPGroupItem::AddElement( const ScDPItemData& rName ) bool ScDPGroupItem::HasElement( const ScDPItemData& rData ) const { - for ( ScDPItemDataVec::const_iterator aIter(aElements.begin()); aIter != aElements.end(); aIter++ ) + for ( ScDPItemDataVec::const_iterator aIter(aElements.begin()); aIter != aElements.end(); ++aIter ) if ( aIter->IsCaseInsEqual( rData ) ) return true; @@ -307,7 +307,7 @@ bool ScDPGroupItem::HasElement( const ScDPItemData& rData ) const bool ScDPGroupItem::HasCommonElement( const ScDPGroupItem& rOther ) const { - for ( ScDPItemDataVec::const_iterator aIter(aElements.begin()); aIter != aElements.end(); aIter++ ) + for ( ScDPItemDataVec::const_iterator aIter(aElements.begin()); aIter != aElements.end(); ++aIter ) if ( rOther.HasElement( *aIter ) ) return true; @@ -388,7 +388,7 @@ const ScDPGroupItem* ScDPGroupDimension::GetGroupForData( const ScDPItemData& rD const ScDPGroupItem* ScDPGroupDimension::GetGroupForName( const ScDPItemData& rName ) const { - for ( ScDPGroupItemVec::const_iterator aIter(aItems.begin()); aIter != aItems.end(); aIter++ ) + for ( ScDPGroupItemVec::const_iterator aIter(aItems.begin()); aIter != aItems.end(); ++aIter ) if ( aIter->GetName().IsCaseInsEqual( rName ) ) return &*aIter; @@ -609,7 +609,7 @@ sal_uLong ScDPGroupTableData::GetNumberFormat(long nDim) void ScDPGroupTableData::DisposeData() { - for ( ScDPGroupDimensionVec::iterator aIter(aGroups.begin()); aIter != aGroups.end(); aIter++ ) + for ( ScDPGroupDimensionVec::iterator aIter(aGroups.begin()); aIter != aGroups.end(); ++aIter ) aIter->DisposeData(); for ( long i=0; i<nSourceCount; i++ ) @@ -862,7 +862,7 @@ void ScDPGroupTableData::FillGroupValues(vector<SCROW>& rItems, const vector<lon sal_Bool ScDPGroupTableData::IsBaseForGroup(long nDim) const { - for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); aIter++ ) + for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); ++aIter ) { const ScDPGroupDimension& rDim = *aIter; if ( rDim.GetSourceDim() == nDim ) @@ -874,7 +874,7 @@ sal_Bool ScDPGroupTableData::IsBaseForGroup(long nDim) const long ScDPGroupTableData::GetGroupBase(long nGroupDim) const { - for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); aIter++ ) + for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); ++aIter ) { const ScDPGroupDimension& rDim = *aIter; if ( rDim.GetGroupDim() == nGroupDim ) @@ -894,7 +894,7 @@ sal_Bool ScDPGroupTableData::IsNumOrDateGroup(long nDimension) const pNumGroups[nDimension].IsDateDimension(); } - for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); aIter++ ) + for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); ++aIter ) { const ScDPGroupDimension& rDim = *aIter; if ( rDim.GetGroupDim() == nDimension ) @@ -907,7 +907,7 @@ sal_Bool ScDPGroupTableData::IsNumOrDateGroup(long nDimension) const sal_Bool ScDPGroupTableData::IsInGroup( const ScDPItemData& rGroupData, long nGroupIndex, const ScDPItemData& rBaseData, long nBaseIndex ) const { - for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); aIter++ ) + for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); ++aIter ) { const ScDPGroupDimension& rDim = *aIter; if ( rDim.GetGroupDim() == nGroupIndex && rDim.GetSourceDim() == nBaseIndex ) @@ -937,7 +937,7 @@ sal_Bool ScDPGroupTableData::HasCommonElement( const ScDPItemData& rFirstData, l { const ScDPGroupDimension* pFirstDim = NULL; const ScDPGroupDimension* pSecondDim = NULL; - for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); aIter++ ) + for ( ScDPGroupDimensionVec::const_iterator aIter(aGroups.begin()); aIter != aGroups.end(); ++aIter ) { const ScDPGroupDimension* pDim = &(*aIter); if ( pDim->GetGroupDim() == nFirstIndex ) |