From e398029f74d6be188829032f5f4d8a8a9e2fb3f9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 17:57:40 +0100 Subject: Always initialize variables --- src/PatchageModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PatchageModule.cpp') diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp index 8c68625..d955900 100644 --- a/src/PatchageModule.cpp +++ b/src/PatchageModule.cpp @@ -117,7 +117,7 @@ PatchageModule::load_location() void PatchageModule::store_location(double x, double y) { - Coord loc(get_x(), get_y()); + const Coord loc{get_x(), get_y()}; _app->conf()->set_module_location(_name, _type, loc); } -- cgit v1.2.1