fix(clang-cl): reduce warnings in tests (#6331)
This commit is contained in:
@@ -38,7 +38,7 @@ TEST(ChatterSet, MaxSize)
|
||||
EXPECT_TRUE(set.contains("Pajlada"));
|
||||
|
||||
// After adding CHATTER_LIMIT-1 additional chatters, pajlada should still be in the set
|
||||
for (auto i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
|
||||
for (size_t i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
|
||||
{
|
||||
set.addRecentChatter(QString("%1").arg(i));
|
||||
}
|
||||
@@ -65,7 +65,7 @@ TEST(ChatterSet, MaxSizeLastUsed)
|
||||
EXPECT_TRUE(set.contains("Pajlada"));
|
||||
|
||||
// After adding CHATTER_LIMIT-1 additional chatters, pajlada should still be in the set
|
||||
for (auto i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
|
||||
for (size_t i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
|
||||
{
|
||||
set.addRecentChatter(QString("%1").arg(i));
|
||||
}
|
||||
@@ -77,7 +77,7 @@ TEST(ChatterSet, MaxSizeLastUsed)
|
||||
set.addRecentChatter("pajlada");
|
||||
|
||||
// After another CHATTER_LIMIT-1 additional chatters, pajlada should still be there
|
||||
for (auto i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
|
||||
for (size_t i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
|
||||
{
|
||||
set.addRecentChatter(QString("new-%1").arg(i));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user