summaryrefslogtreecommitdiff
path: root/cppuhelper/qa
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2018-11-10 17:34:31 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2018-11-10 23:11:28 +0100
commitafbfe42e63cdba1a18c292d7eb4875009b0f19c0 (patch)
tree4d4feec02830008c898cc1cd4eff768f26efda84 /cppuhelper/qa
parent41b09c0ed154aed0caf325a1ab0b7f7ffa688a35 (diff)
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>
Diffstat (limited to 'cppuhelper/qa')
-rw-r--r--cppuhelper/qa/unourl/cppu_unourl.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/cppuhelper/qa/unourl/cppu_unourl.cxx b/cppuhelper/qa/unourl/cppu_unourl.cxx
index 90f193620d87..0be49fc427cd 100644
--- a/cppuhelper/qa/unourl/cppu_unourl.cxx
+++ b/cppuhelper/qa/unourl/cppu_unourl.cxx
@@ -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;