sc/source/core/data/dpcache.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 22c33b17cd64889d2324cbc11b729ea60d0a2e87 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Sun Jan 26 15:02:16 2020 +0100 Commit: Stephan Bergmann <sberg...@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 <sberg...@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. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits