mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-06-28 17:33:14 -04:00
parent
f3f4610ba4
commit
34d30ed031
20 changed files with 31 additions and 75 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue