diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 17:57:40 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:42:51 +0100 |
commit | e398029f74d6be188829032f5f4d8a8a9e2fb3f9 (patch) | |
tree | 7685185b92290e8d61462d7e9f3d4ddea134c10b /src/Configuration.cpp | |
parent | 6342c9cfa934b356b6903be030ce2667c4e5b829 (diff) | |
download | patchage-e398029f74d6be188829032f5f4d8a8a9e2fb3f9.tar.gz patchage-e398029f74d6be188829032f5f4d8a8a9e2fb3f9.tar.bz2 patchage-e398029f74d6be188829032f5f4d8a8a9e2fb3f9.zip |
Always initialize variables
Diffstat (limited to 'src/Configuration.cpp')
-rw-r--r-- | src/Configuration.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 11c0d1a..d5df719 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -33,8 +33,8 @@ static const char* port_type_names[N_PORT_TYPES] = {"JACK_AUDIO", "JACK_CV"}; Configuration::Configuration() - : _window_location(0, 0) - , _window_size(640, 480) + : _window_location{0, 0} + , _window_size{640, 480} , _zoom(1.0) , _font_size(12.0) , _messages_height(0) @@ -212,7 +212,7 @@ Configuration::load() file >> _messages_height; } else if (key == "port_color") { std::string type_name; - uint32_t rgba; + uint32_t rgba = 0u; file >> type_name; file.ignore(1, '#'); file >> std::hex >> std::uppercase; @@ -237,7 +237,7 @@ Configuration::load() file.ignore(1, '\"'); std::getline(file, name, '\"'); - ModuleType type; + ModuleType type = Input; std::string type_str; file >> type_str; if (type_str == "input") { |