From ab5e02f20c4be006c44d98e063f8f12914f9ef1c Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 30 Jun 2021 16:52:44 +0200 Subject: [PATCH] Fix of the previous commit. --- src/libslic3r/Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Config.cpp b/src/libslic3r/Config.cpp index cef27a414..55048604f 100644 --- a/src/libslic3r/Config.cpp +++ b/src/libslic3r/Config.cpp @@ -501,11 +501,11 @@ void ConfigBase::set_deserialize(std::initializer_list items this->set_deserialize(item.opt_key, item.opt_value, substitutions_ctxt, item.append); } -static inline bool looks_like_enum_value(const std::string &s) +static inline bool looks_like_enum_value(const std::string &value) { if (value.empty() || value.size() > 64 || ! isalpha(value.front())) return false; - for (const char c : s) + for (const char c : value) if (! (isalnum(c) || c == '_' || c == '-')) return false; return true;