aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandCompletions.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-12-26 09:39:26 -0800
committerKazu Hirata <kazu@google.com>2021-12-26 09:39:26 -0800
commit0542d15211cb1fb45bcd79d485d122c69cd23f28 (patch)
tree3c1b5088b86277e5bbb444c849d867ddcf5a2a20 /lldb/source/Commands/CommandCompletions.cpp
parent7006d34ce753a4e7f3caf71539008176ceaf6e43 (diff)
downloadllvm-0542d15211cb1fb45bcd79d485d122c69cd23f28.zip
llvm-0542d15211cb1fb45bcd79d485d122c69cd23f28.tar.gz
llvm-0542d15211cb1fb45bcd79d485d122c69cd23f28.tar.bz2
Remove redundant string initialization (NFC)
Identified with readability-redundant-string-init.
Diffstat (limited to 'lldb/source/Commands/CommandCompletions.cpp')
-rw-r--r--lldb/source/Commands/CommandCompletions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp
index 42b0bac71..ff825cce 100644
--- a/lldb/source/Commands/CommandCompletions.cpp
+++ b/lldb/source/Commands/CommandCompletions.cpp
@@ -600,7 +600,7 @@ void CommandCompletions::VariablePath(CommandInterpreter &interpreter,
void CommandCompletions::Registers(CommandInterpreter &interpreter,
CompletionRequest &request,
SearchFilter *searcher) {
- std::string reg_prefix = "";
+ std::string reg_prefix;
if (request.GetCursorArgumentPrefix().startswith("$"))
reg_prefix = "$";