mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
committed by
GitHub
parent
f3f4610ba4
commit
34d30ed031
@@ -69,9 +69,8 @@ private slots:
|
||||
{3, 'b'},
|
||||
{4, 'd'}
|
||||
};
|
||||
Algorithm::removeIf(data, [](const int key, const char value)
|
||||
Algorithm::removeIf(data, []([[maybe_unused]] const int key, const char value)
|
||||
{
|
||||
Q_UNUSED(key);
|
||||
return (value == 'b');
|
||||
});
|
||||
QCOMPARE(data.size(), 3);
|
||||
@@ -83,9 +82,8 @@ private slots:
|
||||
}
|
||||
{
|
||||
QHash<int, char> data;
|
||||
Algorithm::removeIf(data, [](const int key, const char value)
|
||||
Algorithm::removeIf(data, []([[maybe_unused]] const int key, const char value)
|
||||
{
|
||||
Q_UNUSED(key);
|
||||
return (value == 'b');
|
||||
});
|
||||
QVERIFY(data.empty());
|
||||
|
||||
Reference in New Issue
Block a user