diff options
author | bubnikv <bubnikv@gmail.com> | 2021-06-30 17:52:44 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2021-08-13 14:47:07 +0300 |
commit | 5b843aa291572b121e53aaaa622388367e528acb (patch) | |
tree | fead80ea56cd47cb5b303392984ea0a30fd82d7c /src | |
parent | bd159f4e524bcb012e1b435df5c7cad16e8f60f8 (diff) |
Fix of the previous commit.
Diffstat (limited to 'src')
-rw-r--r-- | src/libslic3r/Config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libslic3r/Config.cpp b/src/libslic3r/Config.cpp index f93d98e1b..22afea92f 100644 --- a/src/libslic3r/Config.cpp +++ b/src/libslic3r/Config.cpp @@ -506,11 +506,11 @@ void ConfigBase::set_deserialize(std::initializer_list<SetDeserializeItem> 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; |