[Libreoffice-commits] core.git: sc/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jan 26 15:07:25 UTC 2020
sc/source/core/data/dpcache.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 22c33b17cd64889d2324cbc11b729ea60d0a2e87
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Jan 26 15:02:16 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Jan 26 16:06:38 2020 +0100
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 at redhat.com>
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.
More information about the Libreoffice-commits
mailing list