parser: cat: Code style fixes

parent 1a84c427
...@@ -392,7 +392,7 @@ public: ...@@ -392,7 +392,7 @@ public:
void operator()(struct vte_seq const* seq) noexcept void operator()(struct vte_seq const* seq) noexcept
{ {
auto const cmd = seq->command; auto cmd = seq->command;
switch (cmd) { switch (cmd) {
case VTE_CMD_OSC: case VTE_CMD_OSC:
if (seq->terminator == 7 /* BEL */) if (seq->terminator == 7 /* BEL */)
...@@ -400,8 +400,10 @@ public: ...@@ -400,8 +400,10 @@ public:
break; break;
case VTE_CMD_DECSLRM_OR_SCOSC: case VTE_CMD_DECSLRM_OR_SCOSC:
cmd = VTE_CMD_SCOSC;
[[fallthrough]];
case VTE_CMD_SCOSC: case VTE_CMD_SCOSC:
warn_deprecated(VTE_CMD_SCOSC, VTE_CMD_DECSC); warn_deprecated(cmd, VTE_CMD_DECSC);
break; break;
case VTE_CMD_SCORC: case VTE_CMD_SCORC:
...@@ -424,7 +426,7 @@ private: ...@@ -424,7 +426,7 @@ private:
gsize m_cmd_stats[VTE_CMD_N]; gsize m_cmd_stats[VTE_CMD_N];
GArray* m_bench_times; GArray* m_bench_times;
template <class Functor> template<class Functor>
void void
process_file_utf8(int fd, process_file_utf8(int fd,
Functor& func) Functor& func)
...@@ -497,7 +499,7 @@ private: ...@@ -497,7 +499,7 @@ private:
vte_parser_deinit(&parser); vte_parser_deinit(&parser);
} }
template <class Functor> template<class Functor>
bool bool
process_file(int fd, process_file(int fd,
int repeat, int repeat,
...@@ -534,7 +536,7 @@ public: ...@@ -534,7 +536,7 @@ public:
g_array_free(m_bench_times, true); g_array_free(m_bench_times, true);
} }
template <class Functor> template<class Functor>
bool bool
process_files(char const* const* filenames, process_files(char const* const* filenames,
int repeat, int repeat,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment