summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-09-02 19:50:34 +0200
committerEike Rathke <erack@redhat.com>2015-09-03 00:09:02 +0200
commitb2e5de0b998fac091452190d0386b1d998900399 (patch)
tree1222b82da43d2b34987d79f1ee345873d641499d /sc
parent834eddc8f75fa73b36f3ab5804104829809d8949 (diff)
replace for with while
'i' was unused now.. Change-Id: I1ee7c5af75d049b0dfec6d3a17d730503c71ffc6
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/dbdata.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx
index cf86a1e67d2f..82ee2c6e6fc2 100644
--- a/sc/source/core/tool/dbdata.cxx
+++ b/sc/source/core/tool/dbdata.cxx
@@ -753,7 +753,7 @@ void ScDBData::RefreshTableColumnNames( ScDocument* pDoc, const ScRange& rRange
ScRefCellValue* pCell;
SCCOL nCol;
SCROW nRow;
- for (size_t i=0; (pCell = aIter.GetNext( nCol, nRow)) != nullptr; ++i)
+ while((pCell = aIter.GetNext( nCol, nRow)) != nullptr)
{
if (pCell->hasString())
{