void-packages/srcpkgs/boinctui/patches/uint.patch

45 lines
1.8 KiB
Diff
Raw Normal View History

2022-12-13 16:03:18 +01:00
diff --git a/src/resultparse.cpp b/src/resultparse.cpp
index ae00b32..d4f0440 100644
--- a/src/resultparse.cpp
+++ b/src/resultparse.cpp
@@ -123,7 +123,7 @@ void callbackData(void *userdata, const char *content, int len)
//kLogPrintf("\ncallbackData()-->[%s]<-- len=%d\n",tmp,len);
//заносим значение в текущий эл-т
bool empty = true;
- for (uint i = 0; i < strlen(tmp); i++)
+ for (unsigned int i = 0; i < strlen(tmp); i++)
{
if (tmp[i] != ' ')
{
diff --git a/src/topmenu.cpp b/src/topmenu.cpp
index 4277d26..fcb3eb8 100644
--- a/src/topmenu.cpp
+++ b/src/topmenu.cpp
@@ -502,7 +502,7 @@ ProjectsSubMenu::ProjectsSubMenu(NRect rect, Srv* srv) : NMenu(rect)
if (client_state != NULL)
{
std::vector<Item*> projects = client_state->getItems("project");
- for (uint i = 0; i < projects.size(); i++)
+ for (unsigned int i = 0; i < projects.size(); i++)
{
Item* project_name = projects[i]->findItem("project_name");
if (project_name != NULL)
@@ -817,7 +817,7 @@ ProjectAllListSubMenu::ProjectAllListSubMenu(NRect rect, Srv* srv) : NMenu(rect)
if (projects != NULL)
{
std::vector<Item*> projlist = projects->getItems("project");
- for (uint i = 0; i < projlist.size(); i++)
+ for (unsigned int i = 0; i < projlist.size(); i++)
{
Item* name = projlist[i]->findItem("name");
Item* general_area = projlist[i]->findItem("general_area");
@@ -899,7 +899,7 @@ ProjectAccMgrSubMenu::ProjectAccMgrSubMenu(NRect rect, Srv* srv) : NMenu(rect)
if (projects != NULL)
{
std::vector<Item*> mgrlist = projects->getItems("account_manager");
- for (uint i = 0; i < mgrlist.size(); i++)
+ for (unsigned int i = 0; i < mgrlist.size(); i++)
{
Item* name = mgrlist[i]->findItem("name");
if (name != NULL)