summaryrefslogtreecommitdiffstats
path: root/src/PortID.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PortID.hpp')
-rw-r--r--src/PortID.hpp10
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&