forked from qt-creator/qt-creator
Don't call erase without namespace qualification
C++20 adds free a function `erase` as API for containers, and Qt 6.1 adds it for Qt containers. Since it is a free function, ADL kicks in and creates issues if we don't fully qualify calls to our `erase` function. Change-Id: Ie5971d9206ae9e87e0f28f1390c09ded6f431b90 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -3902,7 +3902,7 @@ void ProjectExplorerPlugin::addCustomParser(const CustomParserSettings &settings
|
||||
|
||||
void ProjectExplorerPlugin::removeCustomParser(Id id)
|
||||
{
|
||||
erase(dd->m_customParsers, [id](const CustomParserSettings &s) {
|
||||
Utils::erase(dd->m_customParsers, [id](const CustomParserSettings &s) {
|
||||
return s.id == id;
|
||||
});
|
||||
emit m_instance->customParsersChanged();
|
||||
|
@@ -90,7 +90,7 @@ void RsyncDeployService::doDeploy()
|
||||
void RsyncDeployService::filterDeployableFiles() const
|
||||
{
|
||||
if (m_ignoreMissingFiles) {
|
||||
erase(m_deployableFiles, [](const DeployableFile &f) {
|
||||
Utils::erase(m_deployableFiles, [](const DeployableFile &f) {
|
||||
return !f.localFilePath().exists();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user