return smpi_colors.find(state)->second.c_str();
}
for (const auto& pair : smpi_colors) { // Is an entry of our map a substring of this state name?
- if (std::strstr(state.c_str(), pair.first.c_str()) != 0)
+ if (std::strstr(state.c_str(), pair.first.c_str()) != nullptr)
return pair.second.c_str();
}