mirror of
https://github.com/intel/llvm.git
synced 2026-02-07 07:39:11 +08:00
[lldb] Remove redundant .c_str() and .get() calls
Removing .c_str() has a semantics difference, but the use scenarios likely do not matter as we don't have NUL in the strings.
This commit is contained in:
@@ -3838,7 +3838,7 @@ public:
|
||||
|
||||
void UpdateMatches(const std::string &text) override {
|
||||
CompletionResult result;
|
||||
CompletionRequest request(text.c_str(), text.size(), result);
|
||||
CompletionRequest request(text, text.size(), result);
|
||||
CommandCompletions::InvokeCommonCompletionCallbacks(
|
||||
m_debugger.GetCommandInterpreter(), m_completion_mask, request,
|
||||
nullptr);
|
||||
|
||||
Reference in New Issue
Block a user