diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-10-31 17:20:46 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-11-01 13:02:26 +0100 |
commit | 26ccd00bc96c585b7065af0dcce246b5bfaae5e1 (patch) | |
tree | 960e163c0041c813e10f567995d648dc9332449d /sc | |
parent | 0610c4439edf95b4cc4e16ee625b60ba606f7528 (diff) |
clang-tidy: (WIP) bugprone-too-small-loop-variable findings
Change-Id: Iaa255b39928ac45dec1ed37e368c149d6027f561
Reviewed-on: https://gerrit.libreoffice.org/62701
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/scmatrix.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index 7c9c6baa3e88..85c8940c18b1 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -1451,7 +1451,7 @@ public: ss << "\tint i;\n\t"; ss << "int currentCount0;\n"; - for (unsigned i = 0; i < vSubArguments.size() - 1; i++) + for (size_t i = 0; i < vSubArguments.size() - 1; i++) ss << "int currentCount" << i + 1 << ";\n"; std::stringstream temp3, temp4; int outLoopSize = UNROLLING_FACTOR; diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index 0db8757af207..1ed5892abd29 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -1224,7 +1224,7 @@ public: { if (mbFirst) { - for (auto i = 0u; i < mpOp->size(); ++i) + for (size_t i = 0u; i < mpOp->size(); ++i) { (*(*mpOp)[i])(maRes[i].mfFirst, *it); } @@ -1232,7 +1232,7 @@ public: } else { - for (auto i = 0u; i < mpOp->size(); ++i) + for (size_t i = 0u; i < mpOp->size(); ++i) { (*(*mpOp)[i])(maRes[i].mfRest, *it); } @@ -1251,7 +1251,7 @@ public: { if (mbFirst) { - for (auto i = 0u; i < mpOp->size(); ++i) + for (size_t i = 0u; i < mpOp->size(); ++i) { (*(*mpOp)[i])(maRes[i].mfFirst, *it); } @@ -1259,7 +1259,7 @@ public: } else { - for (auto i = 0u; i < mpOp->size(); ++i) + for (size_t i = 0u; i < mpOp->size(); ++i) { (*(*mpOp)[i])(maRes[i].mfRest, *it); } |