aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Host/common/Terminal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/common/Terminal.cpp')
-rw-r--r--lldb/source/Host/common/Terminal.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/lldb/source/Host/common/Terminal.cpp b/lldb/source/Host/common/Terminal.cpp
index 9990dbf74356..2301abe9afb1 100644
--- a/lldb/source/Host/common/Terminal.cpp
+++ b/lldb/source/Host/common/Terminal.cpp
@@ -12,8 +12,8 @@
#include "lldb/Host/PosixApi.h"
#include "llvm/ADT/STLExtras.h"
+#include <csignal>
#include <fcntl.h>
-#include <signal.h>
#if LLDB_ENABLE_TERMIOS
#include <termios.h>
@@ -83,15 +83,16 @@ bool Terminal::SetCanonical(bool enabled) {
// Default constructor
TerminalState::TerminalState()
- : m_tty(), m_tflags(-1),
+ : m_tty()
#if LLDB_ENABLE_TERMIOS
- m_termios_up(),
+ ,
+ m_termios_up()
#endif
- m_process_group(-1) {
+{
}
// Destructor
-TerminalState::~TerminalState() {}
+TerminalState::~TerminalState() = default;
void TerminalState::Clear() {
m_tty.Clear();
@@ -189,10 +190,10 @@ bool TerminalState::ProcessGroupIsValid() const {
}
// Constructor
-TerminalStateSwitcher::TerminalStateSwitcher() : m_currentState(UINT32_MAX) {}
+TerminalStateSwitcher::TerminalStateSwitcher() = default;
// Destructor
-TerminalStateSwitcher::~TerminalStateSwitcher() {}
+TerminalStateSwitcher::~TerminalStateSwitcher() = default;
// Returns the number of states that this switcher contains
uint32_t TerminalStateSwitcher::GetNumberOfStates() const {