mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
Add -Wshadow + reformat switch cases
Adding -Wshadow will prevent unintentional variable overrides. Also, wrapping switch cases with declarations with braces will make our logic more robust by limiting lifetimes of variables.
This commit is contained in:
parent
e19f0fc267
commit
68bf55d724
4 changed files with 91 additions and 94 deletions
|
|
@ -243,8 +243,6 @@ handle_commit(struct wl_listener *listener, void *data)
|
|||
*
|
||||
* This is not ideal, but it is the cleanest option.
|
||||
*/
|
||||
struct wlr_xdg_toplevel *toplevel =
|
||||
xdg_toplevel_from_view(view);
|
||||
toplevel->scheduled.width = view->current.width;
|
||||
toplevel->scheduled.height = view->current.height;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue