diff options
Diffstat (limited to 'src/corelib/io/qurlquery.cpp')
| -rw-r--r-- | src/corelib/io/qurlquery.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/io/qurlquery.cpp b/src/corelib/io/qurlquery.cpp index a836fb2e996..c469c51ea9a 100644 --- a/src/corelib/io/qurlquery.cpp +++ b/src/corelib/io/qurlquery.cpp @@ -764,8 +764,7 @@ void QUrlQuery::removeAllQueryItems(const QString &key) auto firstEqualsEncodedKey = [&encodedKey](const QPair<QString, QString> &item) { return item.first == encodedKey; }; - const auto end = p->itemList.end(); - p->itemList.erase(std::remove_if(p->itemList.begin(), end, firstEqualsEncodedKey), end); + p->itemList.removeIf(firstEqualsEncodedKey); } } |
