diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-01 10:41:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-01 18:56:15 +0200 |
commit | 6115082b5ff93db323246e535baaeef405978aca (patch) | |
tree | 23930a3a87b056c34a89d313ea714cbad36452bc /cui | |
parent | a2ab2b31b8b8f1fd17d7d6c8f68e5adc1e8d381d (diff) |
loplugin:loopvartoosmall (clang-cl)
Change-Id: I682fccecd94d1d1524fcb12e93f5d53b0c94ea03
Reviewed-on: https://gerrit.libreoffice.org/79935
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/SvxNotebookbarConfigPage.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cui/source/customize/SvxNotebookbarConfigPage.cxx b/cui/source/customize/SvxNotebookbarConfigPage.cxx index a8dcfb6e334b..4ab507ed4824 100644 --- a/cui/source/customize/SvxNotebookbarConfigPage.cxx +++ b/cui/source/customize/SvxNotebookbarConfigPage.cxx @@ -25,6 +25,8 @@ #include <vcl/svapp.hxx> #include <algorithm> +#include <cstddef> + #include <helpids.h> #include <strings.hrc> @@ -64,7 +66,7 @@ static bool isCategoryAvailable(const OUString& sClassId, const OUString& sUIIte static OUString charToString(const char* cString) { OUStringBuffer aString; - for (unsigned long i = 0; i < strlen(cString); i++) + for (std::size_t i = 0; i < strlen(cString); i++) { aString.append(cString[i]); } @@ -458,7 +460,7 @@ void SvxNotebookbarConfigPage::SelectElement() if (m_xTopLevelListBox->get_count() == 1) { - for (unsigned long nIdx = 0; nIdx < aCategoryList.size(); nIdx++) + for (std::size_t nIdx = 0; nIdx < aCategoryList.size(); nIdx++) m_xTopLevelListBox->append(aCategoryList[nIdx].sUIItemId, aCategoryList[nIdx].sDisplayName); } @@ -468,7 +470,7 @@ void SvxNotebookbarConfigPage::SelectElement() nStart = 1; std::vector<NotebookbarEntries> aTempEntries; - for (unsigned long nIdx = nStart; nIdx < aEntries.size(); nIdx++) + for (std::size_t nIdx = nStart; nIdx < aEntries.size(); nIdx++) { if (aEntries[nIdx].sClassId == "svtlo-ManagedMenuButton") { @@ -477,7 +479,7 @@ void SvxNotebookbarConfigPage::SelectElement() sal_Int32 rPos = 1; sActiveCategory = aEntries[nIdx].sUIItemId.getToken(rPos, ':', rPos); FillFunctionsList(aGtkEntries, aCategoryList, sActiveCategory); - for (unsigned long Idx = 0; Idx < aGtkEntries.size(); Idx++) + for (std::size_t Idx = 0; Idx < aGtkEntries.size(); Idx++) aTempEntries.push_back(aGtkEntries[Idx]); aGtkEntries.clear(); } @@ -489,7 +491,7 @@ void SvxNotebookbarConfigPage::SelectElement() aTempEntries.clear(); sal_Int64 nId = 0; - for (unsigned long nIdx = 0; nIdx < aEntries.size(); nIdx++) + for (std::size_t nIdx = 0; nIdx < aEntries.size(); nIdx++) { OUString sId(OUString::number(nId)); m_xContentsListBox->insert(nIdx, sId); |