From b118451e301d734e3e783b3acdf871f3f6ea851c Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 6 Nov 2024 01:47:26 +0800 Subject: Move switch statement bodies to their own lines (#5493) * Move switch statement bodies to their own lines * format --------- Co-authored-by: Yong He --- examples/ray-tracing-pipeline/main.cpp | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'examples/ray-tracing-pipeline') diff --git a/examples/ray-tracing-pipeline/main.cpp b/examples/ray-tracing-pipeline/main.cpp index f5ad03e1b..d32130c6a 100644 --- a/examples/ray-tracing-pipeline/main.cpp +++ b/examples/ray-tracing-pipeline/main.cpp @@ -255,11 +255,20 @@ struct RayTracing : public WindowedAppBase { switch (key) { - default: break; - case platform::KeyCode::W: wPressed = state; break; - case platform::KeyCode::A: aPressed = state; break; - case platform::KeyCode::S: sPressed = state; break; - case platform::KeyCode::D: dPressed = state; break; + default: + break; + case platform::KeyCode::W: + wPressed = state; + break; + case platform::KeyCode::A: + aPressed = state; + break; + case platform::KeyCode::S: + sPressed = state; + break; + case platform::KeyCode::D: + dPressed = state; + break; } } void onKeyDown(platform::KeyEventArgs args) { setKeyState(args.key, true); } -- cgit v1.2.3