diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-11-14 09:47:10 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-11-14 09:59:00 +0100 |
commit | ea2ba51b0b2f5bc0bea650bf64e5cbd63476563f (patch) | |
tree | d4928d06c93b2831b4e8615a2042bc1a0e335459 | |
parent | f9f30f2ecba520fa1ce33ae7c27c807a0e7199be (diff) | |
download | bcm5719-llvm-ea2ba51b0b2f5bc0bea650bf64e5cbd63476563f.tar.gz bcm5719-llvm-ea2ba51b0b2f5bc0bea650bf64e5cbd63476563f.zip |
[lldb][NFC] Simplify IOHandler constructor/destructor setup
We only need a default constructor because of DISALLOW_COPY_AND_ASSIGN,
but the non-virtual destructor isn't needed.
-rw-r--r-- | lldb/include/lldb/Core/IOHandler.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/include/lldb/Core/IOHandler.h b/lldb/include/lldb/Core/IOHandler.h index 37142a5a839..04b94da3a8c 100644 --- a/lldb/include/lldb/Core/IOHandler.h +++ b/lldb/include/lldb/Core/IOHandler.h @@ -495,9 +495,7 @@ protected: class IOHandlerStack { public: - IOHandlerStack() : m_stack(), m_mutex(), m_top(nullptr) {} - - ~IOHandlerStack() = default; + IOHandlerStack() = default; size_t GetSize() const { std::lock_guard<std::recursive_mutex> guard(m_mutex); @@ -574,7 +572,7 @@ protected: typedef std::vector<lldb::IOHandlerSP> collection; collection m_stack; mutable std::recursive_mutex m_mutex; - IOHandler *m_top; + IOHandler *m_top = nullptr; private: DISALLOW_COPY_AND_ASSIGN(IOHandlerStack); |