diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-15 12:30:48 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-15 12:30:48 +0100 |
commit | 022f7790db45ba61740b41a4807d9b7d2a732916 (patch) | |
tree | 1fc8e5883e6beaac1e4d3d3bda1a22b94bd1e792 /Applications/Terminal | |
parent | fbcc8ab840aaa212934da0082a039038c8a81e53 (diff) | |
download | serenity-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.cpp | 7 |
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; |