From afbfe42e63cdba1a18c292d7eb4875009b0f19c0 Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Sat, 10 Nov 2018 17:34:31 +0100 Subject: clang-tidy: (WIP) bugprone-too-small-loop-variable findings 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1ddf3fe0e5fad265ae14712a23469b684253079d Reviewed-on: https://gerrit.libreoffice.org/63241 Tested-by: Jenkins Reviewed-by: Tamás Zolnai --- cppuhelper/qa/unourl/cppu_unourl.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'cppuhelper/qa') 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; -- cgit