diff options
author | Vincent Sanders <vince@kyllikki.org> | 2024-03-05 08:29:15 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2024-03-05 21:33:13 +0000 |
commit | b5f4d905f958ebfce9be2ab8daa5d42b62f7277d (patch) | |
tree | 2d2b35635858274945de6ac503221877c9ceae21 /content/handlers/html/interaction.c | |
parent | 199f86dcf10bc62b9428f012381e32728bff3014 (diff) | |
download | netsurf-b5f4d905f958ebfce9be2ab8daa5d42b62f7277d.tar.gz netsurf-b5f4d905f958ebfce9be2ab8daa5d42b62f7277d.tar.bz2 |
use attributes to indicate switch fall through instead of comments
Diffstat (limited to 'content/handlers/html/interaction.c')
-rw-r--r-- | content/handlers/html/interaction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/handlers/html/interaction.c b/content/handlers/html/interaction.c index 9e359c98f..0a843e026 100644 --- a/content/handlers/html/interaction.c +++ b/content/handlers/html/interaction.c @@ -899,7 +899,7 @@ gadget_mouse_action(html_content *html, } free(oldcoords); } - /* Fall through */ + fallthrough; case GADGET_SUBMIT: if (mas->gadget.control->form) { @@ -1669,7 +1669,7 @@ void html_set_drag_type(html_content *html, html_drag_type drag_type, case HTML_DRAG_SELECTION: assert(drag_owner.no_owner == true); - /* Fall through */ + fallthrough; case HTML_DRAG_TEXTAREA_SELECTION: case HTML_DRAG_CONTENT_SELECTION: msg_data.drag.type = CONTENT_DRAG_SELECTION; @@ -1800,7 +1800,7 @@ void html_set_selection(html_content *html, html_selection_type selection_type, break; case HTML_SELECTION_SELF: assert(selection_owner.none == false); - /* fall through */ + fallthrough; case HTML_SELECTION_TEXTAREA: case HTML_SELECTION_CONTENT: msg_data.selection.selection = true; |