From e218739bbb66c9a4d2d8860a3322f2eb91b6c32e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 17 Jul 2024 09:14:34 -0400 Subject: Avoid C-style casts --- src/PortID.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/PortID.hpp') diff --git a/src/PortID.hpp b/src/PortID.hpp index 54e4c5d..e22e670 100644 --- a/src/PortID.hpp +++ b/src/PortID.hpp @@ -108,8 +108,9 @@ operator<<(std::ostream& os, const PortID& id) case PortID::Type::jack: return os << "jack:" << id.jack_name(); case PortID::Type::alsa: - return os << "alsa:" << int(id.alsa_client()) << ":" << int(id.alsa_port()) - << ":" << (id.alsa_is_input() ? "in" : "out"); + return os << "alsa:" << static_cast(id.alsa_client()) << ":" + << static_cast(id.alsa_port()) << ":" + << (id.alsa_is_input() ? "in" : "out"); } assert(false); -- cgit v1.2.1