From fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 18 Dec 2022 01:15:25 +0000 Subject: [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. --- lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index 7daf003..2d83a71 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -869,7 +869,7 @@ lldb::thread_result_t GDBRemoteCommunication::ListenThread() { if (connection) { // Do the listen on another thread so we can continue on... if (connection->Connect( - m_listen_url.c_str(), + m_listen_url, [this](llvm::StringRef port_str) { uint16_t port = 0; llvm::to_integer(port_str, port, 10); -- cgit v1.1