From 33d2def12620cd178d61e284027531c9021b6784 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 15 May 2021 17:50:26 +0200 Subject: [PATCH] Explicitly cast enum class to int --- src/macro-action-audio.cpp | 3 ++- src/macro-action-recording.cpp | 2 +- src/macro-action-replay-buffer.cpp | 2 +- src/macro-action-streaming.cpp | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/macro-action-audio.cpp b/src/macro-action-audio.cpp index 8614e842..2f588a04 100644 --- a/src/macro-action-audio.cpp +++ b/src/macro-action-audio.cpp @@ -39,7 +39,8 @@ void MacroActionAudio::LogAction() it->second.c_str(), GetWeakSourceName(_audioSource).c_str()); } else { - blog(LOG_WARNING, "ignored unknown audio action %d", _action); + blog(LOG_WARNING, "ignored unknown audio action %d", + static_cast(_action)); } } diff --git a/src/macro-action-recording.cpp b/src/macro-action-recording.cpp index 9c79ee8b..e479b899 100644 --- a/src/macro-action-recording.cpp +++ b/src/macro-action-recording.cpp @@ -55,7 +55,7 @@ void MacroActionRecord::LogAction() vblog(LOG_INFO, "performed action \"%s\"", it->second.c_str()); } else { blog(LOG_WARNING, "ignored unknown recording action %d", - _action); + static_cast(_action)); } } diff --git a/src/macro-action-replay-buffer.cpp b/src/macro-action-replay-buffer.cpp index 942f4156..0785bbed 100644 --- a/src/macro-action-replay-buffer.cpp +++ b/src/macro-action-replay-buffer.cpp @@ -52,7 +52,7 @@ void MacroActionReplayBuffer::LogAction() vblog(LOG_INFO, "performed action \"%s\"", it->second.c_str()); } else { blog(LOG_WARNING, "ignored unknown replay buffer action %d", - _action); + static_cast(_action)); } } diff --git a/src/macro-action-streaming.cpp b/src/macro-action-streaming.cpp index 09b689de..56dc0c97 100644 --- a/src/macro-action-streaming.cpp +++ b/src/macro-action-streaming.cpp @@ -43,7 +43,7 @@ void MacroActionStream::LogAction() vblog(LOG_INFO, "performed action \"%s\"", it->second.c_str()); } else { blog(LOG_WARNING, "ignored unknown streaming action %d", - _action); + static_cast(_action)); } }