clang-tidy: (WIP) bugprone-too-small-loop-variable findings 2

Change-Id: I1ddf3fe0e5fad265ae14712a23469b684253079d
Reviewed-on: https://gerrit.libreoffice.org/63241
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
Tamás Zolnai
2018-11-10 23:11:28 +01:00
parent 41b09c0ed1
commit afbfe42e63
35 changed files with 65 additions and 73 deletions
+9 -9
View File
@@ -70,7 +70,7 @@ namespace cppu_unourl
{ "abc,def=%22", true },
{ "abc,def=\"", true },
{ "abc,def=%ed%a0%80", true } };
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
{
bool bValid = false;
try
@@ -120,7 +120,7 @@ namespace cppu_unourl
{ "abc,def=%22", "abc,def=%22" },
{ "abc,def=\"", "abc,def=\"" },
{ "abc,def=%ed%a0%80", "abc,def=%ed%a0%80" } };
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
{
bool bValid = false;
OUString aDescriptor;
@@ -168,7 +168,7 @@ namespace cppu_unourl
{ "abc,def=%22", "abc" },
{ "abc,def=\"", "abc" },
{ "abc,def=%ed%a0%80", "abc" } };
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
{
bool bValid = false;
OUString aName;
@@ -213,7 +213,7 @@ namespace cppu_unourl
{ "abc,def=xxx,ghi=xxx", "def", true },
{ "abc,def=xxx,ghi=xxx", "ghi", true },
{ "abc,def=xxx,ghi=xxx", "jkl", false } };
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
{
bool bValid = false;
bool bPresent = false;
@@ -283,7 +283,7 @@ namespace cppu_unourl
{ "abc,abc=,def=Abc", "def", "Abc" },
{ "abc,abc=,def=aBC", "def", "aBC" },
{ "abc,abc=,def=ABC", "def", "ABC" } };
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
{
bool bValid = false;
OUString aValue;
@@ -326,7 +326,7 @@ namespace cppu_unourl
{ "uno:abc;def;1", true },
{ "uno:abc;def;$&+,/:=?@", true },
{ "uno:abc;def;%24&+,/:=?@", false } };
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
{
bool bValid = false;
try
@@ -364,7 +364,7 @@ namespace cppu_unourl
{ "uno:ABC;def;ghi", "ABC" },
{ "uno:abc,def=xxx,ghi=xxx;def,ghi=xxx,jkl=xxx;ghi",
"abc,def=xxx,ghi=xxx" } };
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
{
bool bValid = false;
OUString aConnection;
@@ -398,7 +398,7 @@ namespace cppu_unourl
{ "uno:abc;DEF;ghi", "DEF" },
{ "uno:abc,def=xxx,ghi=xxx;def,ghi=xxx,jkl=xxx;ghi",
"def,ghi=xxx,jkl=xxx" } };
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
{
bool bValid = false;
OUString aProtocol;
@@ -435,7 +435,7 @@ namespace cppu_unourl
{ "uno:abc;def;A", "A" },
{ "uno:abc;def;1", "1" },
{ "uno:abc;def;$&+,/:=?@", "$&+,/:=?@" } };
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
{
bool bValid = false;
OUString aObjectName;