diff options
Diffstat (limited to 'lldb/source/Interpreter/OptionValueBoolean.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionValueBoolean.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/OptionValueBoolean.cpp b/lldb/source/Interpreter/OptionValueBoolean.cpp index dbbd46ea093..bd988fa5750 100644 --- a/lldb/source/Interpreter/OptionValueBoolean.cpp +++ b/lldb/source/Interpreter/OptionValueBoolean.cpp @@ -1,5 +1,4 @@ -//===-- OptionValueBoolean.cpp ------------------------------------*- C++ -//-*-===// +//===-- OptionValueBoolean.cpp ----------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -48,8 +47,7 @@ Error OptionValueBoolean::SetValueFromString(llvm::StringRef value_str, case eVarSetOperationReplace: case eVarSetOperationAssign: { bool success = false; - bool value = - Args::StringToBoolean(value_str.str().c_str(), false, &success); + bool value = Args::StringToBoolean(value_str, false, &success); if (success) { m_value_was_set = true; m_current_value = value; |