Fix Clang-tidy readability-redundant-string-cstr warnings
Reviewers: zturner, labath
Subscribers: tberghammer, danalbert, lldb-commits
Differential Revision: https://reviews.llvm.org/D26233
llvm-svn: 285855
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 06b1b36..6019428 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -880,8 +880,8 @@
}
}
- m_history.AddPacket(m_bytes.c_str(), total_length,
- History::ePacketTypeRecv, total_length);
+ m_history.AddPacket(m_bytes, total_length, History::ePacketTypeRecv,
+ total_length);
// Clear packet_str in case there is some existing data in it.
packet_str.clear();