summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-09-25 08:55:55 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-09-25 08:55:55 +0000
commit436d9881a9a87b2c4177831435e85c8f47ce9ab1 (patch)
treeba0febd241036e043098875a7885ca180a4b0f04
parent60d419e5cdbf5bc48ca459692692fcf980075cf8 (diff)
downloadbcm5719-llvm-436d9881a9a87b2c4177831435e85c8f47ce9ab1.tar.gz
bcm5719-llvm-436d9881a9a87b2c4177831435e85c8f47ce9ab1.zip
[lldb][NFC] Use default member initializers in ReadBufferAndDumpToStreamOptions
llvm-svn: 372830
-rw-r--r--lldb/include/lldb/DataFormatters/StringPrinter.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/lldb/include/lldb/DataFormatters/StringPrinter.h b/lldb/include/lldb/DataFormatters/StringPrinter.h
index 079a3f9385e..d26dd31d3b0 100644
--- a/lldb/include/lldb/DataFormatters/StringPrinter.h
+++ b/lldb/include/lldb/DataFormatters/StringPrinter.h
@@ -144,11 +144,7 @@ public:
class ReadBufferAndDumpToStreamOptions {
public:
- ReadBufferAndDumpToStreamOptions()
- : m_data(), m_stream(nullptr), m_prefix_token(), m_suffix_token(),
- m_quote('"'), m_source_size(0), m_escape_non_printables(true),
- m_zero_is_terminator(true), m_is_truncated(false),
- m_language_type(lldb::eLanguageTypeUnknown) {}
+ ReadBufferAndDumpToStreamOptions() = default;
ReadBufferAndDumpToStreamOptions(ValueObject &valobj);
@@ -241,15 +237,15 @@ public:
private:
DataExtractor m_data;
- Stream *m_stream;
+ Stream *m_stream = nullptr;
std::string m_prefix_token;
std::string m_suffix_token;
- char m_quote;
- uint32_t m_source_size;
- bool m_escape_non_printables;
- bool m_zero_is_terminator;
- bool m_is_truncated;
- lldb::LanguageType m_language_type;
+ char m_quote = '"';
+ uint32_t m_source_size = 0;
+ bool m_escape_non_printables = true;
+ bool m_zero_is_terminator = true;
+ bool m_is_truncated = false;
+ lldb::LanguageType m_language_type = lldb::eLanguageTypeUnknown;
};
// I can't use a std::unique_ptr for this because the Deleter is a template
OpenPOWER on IntegriCloud