Fix signed/unsigned comparison warnings in wxPropertyGrid tests

Use size_t for a variable being compared with a size_t expression.
This commit is contained in:
Vadim Zeitlin 2023-02-19 23:47:08 +01:00
parent b4ab8de248
commit c6a18264e1

View file

@ -588,7 +588,7 @@ TEST_CASE("PropertyGridTestCase", "[propgrid]")
}
REQUIRE(propertiesPageLast == propertiesPageLastInit);
int countAllProperties = 0;
size_t countAllProperties = 0;
for ( it = pgManager->GetVIterator(wxPG_ITERATOR_FLAGS_ALL | wxPG_IT_CHILDREN(wxPG_ITERATOR_FLAGS_ALL)); !it.AtEnd(); it.Next() )
{
countAllProperties++;
@ -650,7 +650,7 @@ TEST_CASE("PropertyGridTestCase", "[propgrid]")
}
REQUIRE(propertiesPageFirst == propertiesPageFirstInit);
int countAllProperties = 0;
size_t countAllProperties = 0;
for ( it = pgManager->GetVIterator(wxPG_ITERATOR_FLAGS_ALL | wxPG_IT_CHILDREN(wxPG_ITERATOR_FLAGS_ALL)); !it.AtEnd(); it.Next() )
{
countAllProperties++;