[Libreoffice-commits] .: 2 commits - sc/source
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Dec 24 06:27:29 PST 2010
sc/source/core/data/document.cxx | 4 ++--
sc/source/core/data/dpdimsave.cxx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit edbe8bbe3e9d999cc3b49d077bb93e0dec2f2547
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Dec 24 13:37:38 2010 +0000
cppcheck: prefer prefix variant
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 784253a..e424e2f 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -3891,7 +3891,7 @@ BOOL ScDocument::GetColDefault( SCTAB nTab, SCCOL nCol, SCROW nLastRow, SCROW& n
}
ScDefaultAttrSet::iterator aDefaultItr = aSet.begin();
aItr = aDefaultItr;
- aItr++;
+ ++aItr;
while (aItr != aSet.end())
{
// for entries with equal count, use the one with the lowest start row,
@@ -3899,7 +3899,7 @@ BOOL ScDocument::GetColDefault( SCTAB nTab, SCCOL nCol, SCROW nLastRow, SCROW& n
if ( aItr->nCount > aDefaultItr->nCount ||
( aItr->nCount == aDefaultItr->nCount && aItr->nFirst < aDefaultItr->nFirst ) )
aDefaultItr = aItr;
- aItr++;
+ ++aItr;
}
nDefault = aDefaultItr->nFirst;
bRet = TRUE;
commit e54aecda9581d71f8d68d6a0763d4f1bc294da65
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Dec 24 13:25:51 2010 +0000
cppcheck: prefer prefix variant
diff --git a/sc/source/core/data/dpdimsave.cxx b/sc/source/core/data/dpdimsave.cxx
index 5cff12a..20d342f 100644
--- a/sc/source/core/data/dpdimsave.cxx
+++ b/sc/source/core/data/dpdimsave.cxx
@@ -62,7 +62,7 @@ void ScDPSaveGroupItem::AddElementsFromGroup( const ScDPSaveGroupItem& rGroup )
// add all elements of the other group (used for nested grouping)
for ( std::vector<String>::const_iterator aIter(rGroup.aElements.begin());
- aIter != rGroup.aElements.end(); aIter++ )
+ aIter != rGroup.aElements.end(); ++aIter )
aElements.push_back( *aIter );
}
More information about the Libreoffice-commits
mailing list