aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/deprecated-features.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/deprecated-features.cc')
-rw-r--r--src/libutil/deprecated-features.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/deprecated-features.cc b/src/libutil/deprecated-features.cc
index 11b6c42bd..877d69da0 100644
--- a/src/libutil/deprecated-features.cc
+++ b/src/libutil/deprecated-features.cc
@@ -77,12 +77,12 @@ nlohmann::json documentDeprecatedFeatures()
return (nlohmann::json) res;
}
-std::set<DeprecatedFeature> parseDeprecatedFeatures(const std::set<std::string> & rawFeatures)
+DeprecatedFeatures parseDeprecatedFeatures(const std::set<std::string> & rawFeatures)
{
- std::set<DeprecatedFeature> res;
+ DeprecatedFeatures res{};
for (auto & rawFeature : rawFeatures)
if (auto feature = parseDeprecatedFeature(rawFeature))
- res.insert(*feature);
+ res = res | *feature;
return res;
}