Merge pull request #9170 from tfc/fix-broken-move

Fix broken move
This commit is contained in:
John Ericson 2023-10-16 15:13:03 -04:00 committed by GitHub
commit aa4f41d796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,7 @@ void AbstractConfig::warnUnknownSettings()
void AbstractConfig::reapplyUnknownSettings() void AbstractConfig::reapplyUnknownSettings()
{ {
auto unknownSettings2 = std::move(unknownSettings); auto unknownSettings2 = std::move(unknownSettings);
unknownSettings = {};
for (auto & s : unknownSettings2) for (auto & s : unknownSettings2)
set(s.first, s.second); set(s.first, s.second);
} }