Skip to content
Snippets Groups Projects
Commit ab76a5ae authored by whh8b's avatar whh8b
Browse files

Fix missing 'needs value' initializer in boolean option.

parent fac1bf45
No related branches found
No related tags found
No related merge requests found
......@@ -221,13 +221,13 @@ class ZiprBooleanOption_t : public ZiprTypedOption_t<bool>
public:
ZiprBooleanOption_t(std::string key, std::string value = "")
: ZiprTypedOption_t(ZiprBooleanOptionType, key, value) {
m_key = key;
m_untyped_value = value;
m_needs_value = false;
}
ZiprBooleanOption_t(std::string key, bool value)
: ZiprTypedOption_t(ZiprBooleanOptionType, key, "") {
m_value = value;
m_needs_value = false;
m_untyped_value = ConvertToUntyped(value);
}
void Set() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment