summaryrefslogtreecommitdiffstats
path: root/src/Configuration.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:57:47 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:51 +0100
commit42d2c149d6fff2521e31cd580acf8114aaabce68 (patch)
tree4cd396751f5f0fe10d9ddc193edbf72fd088d0de /src/Configuration.hpp
parent55998092a1edfe9fd313a0a703ab4ba688e3f6ee (diff)
downloadpatchage-42d2c149d6fff2521e31cd580acf8114aaabce68.tar.gz
patchage-42d2c149d6fff2521e31cd580acf8114aaabce68.tar.bz2
patchage-42d2c149d6fff2521e31cd580acf8114aaabce68.zip
Initialize all members
Diffstat (limited to 'src/Configuration.hpp')
-rw-r--r--src/Configuration.hpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/Configuration.hpp b/src/Configuration.hpp
index e58e170..9516310 100644
--- a/src/Configuration.hpp
+++ b/src/Configuration.hpp
@@ -43,18 +43,15 @@ enum class PortType
struct Coord
{
- Coord()
- : x(0.0)
- , y(0.0)
- {}
+ Coord() = default;
Coord(double x_, double y_)
: x(x_)
, y(y_)
{}
- double x;
- double y;
+ double x{0.0};
+ double y{0.0};
};
class Configuration
@@ -129,18 +126,19 @@ private:
std::map<std::string, ModuleSettings> _module_settings;
- uint32_t _default_port_colors[N_PORT_TYPES];
- uint32_t _port_colors[N_PORT_TYPES];
-
- Coord _window_location;
- Coord _window_size;
- float _zoom;
- float _font_size;
- int _messages_height;
- bool _show_toolbar;
- bool _sprung_layout;
- bool _show_messages;
- bool _sort_ports;
+ uint32_t _default_port_colors[N_PORT_TYPES] = {};
+ uint32_t _port_colors[N_PORT_TYPES] = {};
+
+ Coord _window_location{0.0, 0.0};
+ Coord _window_size{960.0, 540.0};
+
+ float _zoom = 1.0f;
+ float _font_size = 12.0f;
+ int _messages_height = 0;
+ bool _show_toolbar = true;
+ bool _sprung_layout = false;
+ bool _show_messages = false;
+ bool _sort_ports = true;
};
#endif // PATCHAGE_CONFIGURATION_HPP