| 59 | } |
| 60 | |
| 61 | void WidgetContainer::setUserData(std::string_view _key, std::string_view _value) |
| 62 | { |
| 63 | bool found = false; |
| 64 | |
| 65 | for (auto& item : mUserString) |
| 66 | { |
| 67 | if (item.first == _key) |
| 68 | { |
| 69 | found = true; |
| 70 | item.second = _value; |
| 71 | break; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | if (!found) |
| 76 | mUserString.emplace_back(_key, _value); |
| 77 | } |
| 78 | |
| 79 | std::string_view WidgetContainer::getUserData(std::string_view _key) |
| 80 | { |
no outgoing calls
no test coverage detected