MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / append_dummy_if_empty

Method append_dummy_if_empty

OpenHD/ohd_common/src/openhd_settings_imp.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void openhd::testing::append_dummy_if_empty(std::vector<Setting>& ret) {
56 if (ret.empty()) {
57 auto tmp = openhd::IntSetting{0};
58 const std::string id = "DUMMY";
59 ret.push_back(Setting{id, tmp});
60 }
61}
62void openhd::append_int_param(std::vector<Setting>& ret, const std::string& ID,
63 int value, const std::function<bool(int)>& cb) {
64 auto cb2 = [cb](std::string param_id,

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected