mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
Update SettingsActivity.cpp
just fixing the CI build failure
This commit is contained in:
parent
c0b3c60589
commit
a634421037
@ -3,6 +3,7 @@
|
||||
#include <GfxRenderer.h>
|
||||
#include <HardwareSerial.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
|
||||
#include "CalibreSettingsActivity.h"
|
||||
@ -16,12 +17,11 @@
|
||||
namespace {
|
||||
const std::vector<SettingInfo>& getSettings() {
|
||||
static std::vector<SettingInfo> filteredSettings = []() {
|
||||
const auto& allSettings = getSettingsList();
|
||||
std::vector<SettingInfo> filtered;
|
||||
for (const auto& setting : getSettingsList()) {
|
||||
if (!setting.hideFromDeviceUI) {
|
||||
filtered.push_back(setting);
|
||||
}
|
||||
}
|
||||
filtered.reserve(allSettings.size());
|
||||
std::copy_if(allSettings.begin(), allSettings.end(), std::back_inserter(filtered),
|
||||
[](const SettingInfo& setting) { return !setting.hideFromDeviceUI; });
|
||||
return filtered;
|
||||
}();
|
||||
return filteredSettings;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user