diff options
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Interpreter/OptionValueChar.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/Interpreter/OptionValueChar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/llvm/tools/lldb/source/Interpreter/OptionValueChar.cpp b/contrib/llvm/tools/lldb/source/Interpreter/OptionValueChar.cpp index 7a01353..b5ef1d3 100644 --- a/contrib/llvm/tools/lldb/source/Interpreter/OptionValueChar.cpp +++ b/contrib/llvm/tools/lldb/source/Interpreter/OptionValueChar.cpp @@ -39,7 +39,7 @@ OptionValueChar::DumpValue (const ExecutionContext *exe_ctx, Stream &strm, uint3 } Error -OptionValueChar::SetValueFromCString (const char *value_cstr, +OptionValueChar::SetValueFromString (llvm::StringRef value, VarSetOperationType op) { Error error; @@ -53,19 +53,19 @@ OptionValueChar::SetValueFromCString (const char *value_cstr, case eVarSetOperationAssign: { bool success = false; - char char_value = Args::StringToChar(value_cstr, '\0', &success); + char char_value = Args::StringToChar(value.str().c_str(), '\0', &success); if (success) { m_current_value = char_value; m_value_was_set = true; } else - error.SetErrorStringWithFormat("'%s' cannot be longer than 1 character", value_cstr); + error.SetErrorStringWithFormat("'%s' cannot be longer than 1 character", value.str().c_str()); } break; default: - error = OptionValue::SetValueFromCString (value_cstr, op); + error = OptionValue::SetValueFromString (value.str().c_str(), op); break; } return error; |