mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-13 03:37:05 +01:00
settings: hide kv_store from the public header
More concise foreach, generic template code also no longer expands down to ::_read_kv Also helps with needless inlining happening with recent gcc versions
This commit is contained in:
@@ -15,8 +15,7 @@ Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
|
||||
void delSettingPrefix(const std::initializer_list<const char*>& prefixes) {
|
||||
std::vector<String> to_purge;
|
||||
|
||||
using namespace settings;
|
||||
kv_store.foreach([&](kvs_type::KeyValueResult&& kv) {
|
||||
settings::internal::foreach([&](settings::kvs_type::KeyValueResult&& kv) {
|
||||
auto key = kv.key.read();
|
||||
for (const auto* prefix : prefixes) {
|
||||
if (key.startsWith(prefix)) {
|
||||
|
||||
Reference in New Issue
Block a user