aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-18 01:15:25 +0000
committerFangrui Song <i@maskray.me>2022-12-18 01:15:25 +0000
commitfbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd (patch)
tree735c071463e87ff80c30d1bb2b4528fc8aa1a8a9 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parenta3400191137e7c991b89ebe72211790dae1648a1 (diff)
downloadllvm-fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd.zip
llvm-fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd.tar.gz
llvm-fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd.tar.bz2
[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.
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index 62e46c5..72da81f 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -130,10 +130,10 @@ public:
m_bp_opts.SetThreadID(thread_id);
} break;
case 'T':
- m_bp_opts.GetThreadSpec()->SetName(option_arg.str().c_str());
+ m_bp_opts.GetThreadSpec()->SetName(option_arg.str());
break;
case 'q':
- m_bp_opts.GetThreadSpec()->SetQueueName(option_arg.str().c_str());
+ m_bp_opts.GetThreadSpec()->SetQueueName(option_arg.str());
break;
case 'x': {
uint32_t thread_index = UINT32_MAX;