diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 17:57:47 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:42:51 +0100 |
commit | 42d2c149d6fff2521e31cd580acf8114aaabce68 (patch) | |
tree | 4cd396751f5f0fe10d9ddc193edbf72fd088d0de /src/PortID.hpp | |
parent | 55998092a1edfe9fd313a0a703ab4ba688e3f6ee (diff) | |
download | patchage-42d2c149d6fff2521e31cd580acf8114aaabce68.tar.gz patchage-42d2c149d6fff2521e31cd580acf8114aaabce68.tar.bz2 patchage-42d2c149d6fff2521e31cd580acf8114aaabce68.zip |
Initialize all members
Diffstat (limited to 'src/PortID.hpp')
-rw-r--r-- | src/PortID.hpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/PortID.hpp b/src/PortID.hpp index d830c0c..3dea5af 100644 --- a/src/PortID.hpp +++ b/src/PortID.hpp @@ -40,11 +40,7 @@ struct PortID alsa_addr, }; - PortID() - : type(Type::nothing) - { - memset(&id, 0, sizeof(id)); - } + PortID() = default; PortID(const PortID& copy) : type(copy.type) @@ -69,7 +65,7 @@ struct PortID } #endif - Type type; + Type type = Type::nothing; union { @@ -83,7 +79,7 @@ struct PortID bool is_input : 1; }; #endif - } id; + } id = {}; }; static inline std::ostream& |