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/PatchageEvent.hpp | |
parent | 55998092a1edfe9fd313a0a703ab4ba688e3f6ee (diff) | |
download | patchage-42d2c149d6fff2521e31cd580acf8114aaabce68.tar.gz patchage-42d2c149d6fff2521e31cd580acf8114aaabce68.tar.bz2 patchage-42d2c149d6fff2521e31cd580acf8114aaabce68.zip |
Initialize all members
Diffstat (limited to 'src/PatchageEvent.hpp')
-rw-r--r-- | src/PatchageEvent.hpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/PatchageEvent.hpp b/src/PatchageEvent.hpp index 34cf5fb..2bb239a 100644 --- a/src/PatchageEvent.hpp +++ b/src/PatchageEvent.hpp @@ -51,8 +51,7 @@ public: }; explicit PatchageEvent(Type type = Type::noop) - : _str(nullptr) - , _type(type) + : _type(type) {} PatchageEvent(Type type, const char* str) @@ -62,15 +61,13 @@ public: template<typename P> PatchageEvent(Type type, P port) - : _str(nullptr) - , _port_1(port) + : _port_1(port) , _type(type) {} template<typename P> PatchageEvent(Type type, P port_1, P port_2) - : _str(nullptr) - , _port_1(port_1, false) + : _port_1(port_1, false) , _port_2(port_2, true) , _type(type) {} @@ -80,7 +77,7 @@ public: inline Type type() const { return _type; } private: - char* _str; + char* _str{nullptr}; PortID _port_1; PortID _port_2; Type _type; |