diff options
| author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 20:34:10 +0000 |
|---|---|---|
| committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 20:34:10 +0000 |
| commit | 771ef6d4f15452d76387cd66552a38122be60925 (patch) | |
| tree | 78449c43ffd29ef2bd0801c9f8bf80fced0ef3e4 /lldb/source/Plugins/StructuredData | |
| parent | 7463adadbf0ab2742b122a3d4adc8e2041c3ac01 (diff) | |
| download | llvm-771ef6d4f15452d76387cd66552a38122be60925.tar.gz llvm-771ef6d4f15452d76387cd66552a38122be60925.tar.bz2 llvm-771ef6d4f15452d76387cd66552a38122be60925.zip | |
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
Diffstat (limited to 'lldb/source/Plugins/StructuredData')
| -rw-r--r-- | lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp b/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp index ed86dfcf8131..185c3ef98e92 100644 --- a/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp +++ b/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp @@ -1818,7 +1818,7 @@ StructuredDataDarwinLog::DumpHeader(Stream &output_stream, // Display the activity chain, from parent-most to child-most // activity, separated by a colon (:). stream.PutCString("activity-chain="); - stream.PutCString(activity_chain.c_str()); + stream.PutCString(activity_chain); #else if (GetGlobalProperties()->GetDisplayActivityChain()) { // Display the activity chain, from parent-most to child-most @@ -1850,7 +1850,7 @@ StructuredDataDarwinLog::DumpHeader(Stream &output_stream, if (header_count > 0) stream.PutChar(','); stream.PutCString("subsystem="); - stream.PutCString(subsystem.c_str()); + stream.PutCString(subsystem); ++header_count; } } @@ -1862,14 +1862,14 @@ StructuredDataDarwinLog::DumpHeader(Stream &output_stream, if (header_count > 0) stream.PutChar(','); stream.PutCString("category="); - stream.PutCString(category.c_str()); + stream.PutCString(category); ++header_count; } } stream.PutCString("] "); auto &result = stream.GetString(); - output_stream.PutCString(result.c_str()); + output_stream.PutCString(result); return result.size(); } |
