Browse Source

config_passthrough.cpp

passthrough
Antonio SJ Musumeci 7 months ago
parent
commit
2d925d871f
  1. 5
      src/config_passthrough.cpp

5
src/config_passthrough.cpp

@ -34,11 +34,10 @@ Passthrough::from_string(const std::string &s_)
better_enums::optional<PassthroughEnum> e; better_enums::optional<PassthroughEnum> e;
e = PassthroughEnum::_from_string_nothrow(s_.c_str()); e = PassthroughEnum::_from_string_nothrow(s_.c_str());
if(!x)
if(!e)
return -EINVAL; return -EINVAL;
_data = *x;
_data = *e;
return 0; return 0;
} }
Loading…
Cancel
Save