mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-29 19:04:31 +00:00
Resolve new warning from !4798
This commit is contained in:
parent
43fecf48c7
commit
f8553f2e8a
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ namespace LuaUtil
|
||||||
color["rgb"] = [](float r, float g, float b) { return Misc::Color(r, g, b, 1); };
|
color["rgb"] = [](float r, float g, float b) { return Misc::Color(r, g, b, 1); };
|
||||||
color["hex"] = [](std::string_view hex) { return Misc::Color::fromHex(hex); };
|
color["hex"] = [](std::string_view hex) { return Misc::Color::fromHex(hex); };
|
||||||
color["commaString"] = [](std::string_view str) {
|
color["commaString"] = [](std::string_view str) {
|
||||||
int wrongChars = std::count_if(
|
auto wrongChars = std::count_if(
|
||||||
str.begin(), str.end(), [](unsigned char c) { return !std::isdigit(c) && c != ' ' && c != ','; });
|
str.begin(), str.end(), [](unsigned char c) { return !std::isdigit(c) && c != ' ' && c != ','; });
|
||||||
|
|
||||||
if (wrongChars != 0)
|
if (wrongChars != 0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue