summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-01-26 15:02:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-01-26 16:06:38 +0100
commit22c33b17cd64889d2324cbc11b729ea60d0a2e87 (patch)
tree4951c0e4785f5e76b0f08be8234c3e876c6b648a /sc
parentb2945902e7a0ad9f033fe67f5ab217d6e31d8d84 (diff)
Use properly typed variables for iteration
Change-Id: Id4857933ae7f038ae14c356ce22257d3ab352c96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87445 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dpcache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index 95f932339443..d86ab2a300be 100644
--- a/sc/source/core/data/dpcache.cxx
+++ b/sc/source/core/data/dpcache.cxx
@@ -554,7 +554,7 @@ void ScDPCache::InitFromDoc(ScDocument* pDoc, const ScRange& rRange)
maStringPools.resize(mnColumnCount);
std::vector<InitColumnData> aColData(mnColumnCount);
maFields.reserve(mnColumnCount);
- for (size_t i = 0; i < static_cast<size_t>(mnColumnCount); ++i)
+ for (SCCOL i = 0; i < mnColumnCount; ++i)
maFields.push_back(std::make_unique<Field>());
maLabelNames.reserve(mnColumnCount+1);
@@ -633,7 +633,7 @@ bool ScDPCache::InitFromDataBase(DBConnector& rDB)
maStringPools.resize(mnColumnCount);
maFields.clear();
maFields.reserve(mnColumnCount);
- for (size_t i = 0; i < static_cast<size_t>(mnColumnCount); ++i)
+ for (SCCOL i = 0; i < mnColumnCount; ++i)
maFields.push_back(std::make_unique<Field>());
// Get column titles and types.