aboutsummaryrefslogtreecommitdiff
path: root/lldb/include/lldb/Interpreter/OptionValueBoolean.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/include/lldb/Interpreter/OptionValueBoolean.h')
-rw-r--r--lldb/include/lldb/Interpreter/OptionValueBoolean.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/lldb/include/lldb/Interpreter/OptionValueBoolean.h b/lldb/include/lldb/Interpreter/OptionValueBoolean.h
index 1af14a4980ed..fd15ccb12c40 100644
--- a/lldb/include/lldb/Interpreter/OptionValueBoolean.h
+++ b/lldb/include/lldb/Interpreter/OptionValueBoolean.h
@@ -13,15 +13,14 @@
namespace lldb_private {
-class OptionValueBoolean : public OptionValue {
+class OptionValueBoolean : public Cloneable<OptionValueBoolean, OptionValue> {
public:
OptionValueBoolean(bool value)
- : OptionValue(), m_current_value(value), m_default_value(value) {}
+ : m_current_value(value), m_default_value(value) {}
OptionValueBoolean(bool current_value, bool default_value)
- : OptionValue(), m_current_value(current_value),
- m_default_value(default_value) {}
+ : m_current_value(current_value), m_default_value(default_value) {}
- ~OptionValueBoolean() override {}
+ ~OptionValueBoolean() override = default;
// Virtual subclass pure virtual overrides
@@ -33,9 +32,6 @@ public:
Status
SetValueFromString(llvm::StringRef value,
VarSetOperationType op = eVarSetOperationAssign) override;
- Status
- SetValueFromString(const char *,
- VarSetOperationType = eVarSetOperationAssign) = delete;
void Clear() override {
m_current_value = m_default_value;
@@ -75,8 +71,6 @@ public:
void SetDefaultValue(bool value) { m_default_value = value; }
- lldb::OptionValueSP DeepCopy() const override;
-
protected:
bool m_current_value;
bool m_default_value;