| 135 | } |
| 136 | |
| 137 | bool CustomColorMapStorage::contains(const QString &name) const |
| 138 | { |
| 139 | auto it = std::find_if(this->customColorMaps.begin(), |
| 140 | this->customColorMaps.end(), |
| 141 | [&name](const CustomColorMap &map) { return map.name == name; }); |
| 142 | return it != this->customColorMaps.end(); |
| 143 | } |
| 144 | |
| 145 | size_t CustomColorMapStorage::saveAndGetIndex(const CustomColorMap &customColormap) |
| 146 | { |
no outgoing calls
no test coverage detected