Skip to content

Commit

Permalink
Merge pull request #3090 from MirServer/fix-plarform-XXX-libs-parsing
Browse files Browse the repository at this point in the history
Fix processing of `--platform-*-libs`
  • Loading branch information
AlanGriffiths authored Oct 25, 2023
2 parents fdf1e84 + c539fb4 commit 60a5409
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/server/graphics/default_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,11 @@ auto select_platforms_from_list(std::string const& selection, std::vector<std::s
auto const description = describe_module();
found_module_names.emplace_back(description->name);

if (std::find(requested_modules.begin(), requested_modules.end(), description->name) != requested_modules.end())
if (auto const i = std::find(requested_modules.begin(), requested_modules.end(), description->name);
i != requested_modules.end())
{
selected_modules.push_back(module);
requested_modules.erase(
std::remove(
requested_modules.begin(),
requested_modules.end(),
description->name),
requested_modules.end());
break;
requested_modules.erase(i);
}
}
catch (std::exception const&)
Expand Down

0 comments on commit 60a5409

Please sign in to comment.