]> git.mdlowis.com Git - proto/labwc.git/commit
treewide: remove empty statements in switch cases
authorJohn Lindgren <john@jlindgren.net>
Thu, 22 May 2025 14:53:58 +0000 (10:53 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 22 May 2025 21:52:43 +0000 (22:52 +0100)
commita3d62267282da2cc067992258983d9e876eaf267
tree63deb03408822bb404a1d92bea0610e23ff869e0
parentfbb92e2e3060289edcc7c1d09c641e8ad8880545
treewide: remove empty statements in switch cases

For longer cases, factor out the logic to new functions.
For very short cases, just move the declaration before the switch.

v2: in one case, replace the switch with if/else.
src/action.c
src/desktop.c
src/edges.c
src/server.c
src/ssd/resize-indicator.c