summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2016-11-12 20:53:38 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2016-11-12 21:36:25 -0500
commitc000b8144ee494743571d10b4958c3c0ec2591bd (patch)
tree400dd1259d6adbecdda79555d96bfa918a58c037
parent61228277fddba7e92f69bbee12010fb53835827d (diff)
Address warning from the MSVC compiler.
warning C4701: potentially uninitialized local variable 'aRange' used Change-Id: I06753a17f9b7efa35395f943f8a2ecccdd194be9
-rw-r--r--sc/source/core/data/dpcache.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index 477112d5af8b..215826344dd3 100644
--- a/sc/source/core/data/dpcache.cxx
+++ b/sc/source/core/data/dpcache.cxx
@@ -1310,15 +1310,14 @@ void ScDPCache::Dump() const
{
aRange.start = it->first;
aRange.empty = it->second;
- ++it;
- }
- for (; it != itEnd; ++it)
- {
- aRange.end = it->first-1;
- cout << " rows " << aRange.start << "-" << aRange.end << ": " << (aRange.empty ? "empty" : "not-empty") << endl;
- aRange.start = it->first;
- aRange.empty = it->second;
+ for (++it; it != itEnd; ++it)
+ {
+ aRange.end = it->first-1;
+ cout << " rows " << aRange.start << "-" << aRange.end << ": " << (aRange.empty ? "empty" : "not-empty") << endl;
+ aRange.start = it->first;
+ aRange.empty = it->second;
+ }
}
}