diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ClientID.hpp | 2 | ||||
-rw-r--r-- | src/JackDbusDriver.cpp | 2 | ||||
-rw-r--r-- | src/JackLibDriver.cpp | 6 | ||||
-rw-r--r-- | src/PortID.hpp | 5 |
4 files changed, 10 insertions, 5 deletions
diff --git a/src/ClientID.hpp b/src/ClientID.hpp index f918ea4..dbe5b75 100644 --- a/src/ClientID.hpp +++ b/src/ClientID.hpp @@ -72,7 +72,7 @@ operator<<(std::ostream& os, const ClientID& id) case ClientID::Type::jack: return os << "jack:" << id.jack_name(); case ClientID::Type::alsa: - return os << "alsa:" << int(id.alsa_id()); + return os << "alsa:" << static_cast<int>(id.alsa_id()); } assert(false); diff --git a/src/JackDbusDriver.cpp b/src/JackDbusDriver.cpp index e7e6830..f84cb51 100644 --- a/src/JackDbusDriver.cpp +++ b/src/JackDbusDriver.cpp @@ -937,7 +937,7 @@ JackDriver::port_info(const std::string& port_name, patchage_port_type(port_type), direction, {}, - bool(port_flags & port_flag_terminal)}; + static_cast<bool>(port_flags & port_flag_terminal)}; } void diff --git a/src/JackLibDriver.cpp b/src/JackLibDriver.cpp index 017abf5..6df5b02 100644 --- a/src/JackLibDriver.cpp +++ b/src/JackLibDriver.cpp @@ -237,7 +237,11 @@ JackLibDriver::get_port_info(const jack_port_t* const port) order = std::stoi(order_str); } - return {label, type, direction, order, bool(flags & JackPortIsTerminal)}; + return {label, + type, + direction, + order, + static_cast<bool>(flags & JackPortIsTerminal)}; } void 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<int>(id.alsa_client()) << ":" + << static_cast<int>(id.alsa_port()) << ":" + << (id.alsa_is_input() ? "in" : "out"); } assert(false); |