From 6342c9cfa934b356b6903be030ce2667c4e5b829 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 17:57:39 +0100 Subject: Always use braces around statements --- src/PatchageModule.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/PatchageModule.cpp') diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp index 3a802f6..8c68625 100644 --- a/src/PatchageModule.cpp +++ b/src/PatchageModule.cpp @@ -50,8 +50,9 @@ PatchageModule::~PatchageModule() void PatchageModule::update_menu() { - if (!_menu) + if (!_menu) { return; + } if (_type == InputOutput) { bool has_in = false; @@ -106,10 +107,11 @@ PatchageModule::load_location() { Coord loc; - if (_app->conf()->get_module_location(_name, _type, loc)) + if (_app->conf()->get_module_location(_name, _type, loc)) { move_to(loc.x, loc.y); - else + } else { move_to(20 + rand() % 640, 20 + rand() % 480); + } } void -- cgit v1.2.1