| 80 | } |
| 81 | |
| 82 | openhd::Setting openhd::create_read_only_string(const std::string& id, |
| 83 | std::string value) { |
| 84 | if (value.length() > 15) { |
| 85 | value.resize(15); |
| 86 | } |
| 87 | auto cb = [](const std::string&, const std::string&) { return false; }; |
| 88 | return Setting{id, openhd::StringSetting{value, cb}}; |
| 89 | } |
| 90 | |
| 91 | openhd::Setting openhd::create_read_only_int(const std::string& id, int value) { |
| 92 | auto cb = [](const std::string&, int) { return false; }; |
nothing calls this directly
no outgoing calls
no test coverage detected