summaryrefslogtreecommitdiff
path: root/Applications/Terminal
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-15 12:30:48 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-15 12:30:48 +0100
commit022f7790db45ba61740b41a4807d9b7d2a732916 (patch)
tree1fc8e5883e6beaac1e4d3d3bda1a22b94bd1e792 /Applications/Terminal
parentfbcc8ab840aaa212934da0082a039038c8a81e53 (diff)
downloadserenity-022f7790db45ba61740b41a4807d9b7d2a732916.zip
Use modern C++ attributes instead of __attribute__ voodoo.
This is quite nice, although I wish [[gnu::always_inline]] implied inline. Also "gnu::" is kind of a wart, but whatcha gonna do.
Diffstat (limited to 'Applications/Terminal')
-rw-r--r--Applications/Terminal/Terminal.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp
index 3e169505f4..97b6ea5e6f 100644
--- a/Applications/Terminal/Terminal.cpp
+++ b/Applications/Terminal/Terminal.cpp
@@ -481,27 +481,26 @@ void Terminal::on_char(byte ch)
return;
}
m_escape_state = ExpectXtermFinal;
- // fall through
+ [[fallthrough]];
case ExpectXtermFinal:
m_escape_state = Normal;
if (ch == '\007')
execute_xterm_command();
return;
-
case ExpectParameter:
if (is_valid_parameter_character(ch)) {
m_parameters.append(ch);
return;
}
m_escape_state = ExpectIntermediate;
- // fall through
+ [[fallthrough]];
case ExpectIntermediate:
if (is_valid_intermediate_character(ch)) {
m_intermediates.append(ch);
return;
}
m_escape_state = ExpectFinal;
- // fall through
+ [[fallthrough]];
case ExpectFinal:
if (is_valid_final_character(ch)) {
m_escape_state = Normal;