From 08e183d322981c705ba9fc7f4f1476cc7e7e5f23 Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Sun, 19 Jul 2026 20:30:21 +0200 Subject: Replace string concatination with `fmt::format` --- Source/Core/AudioCommon/WASAPIStream.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/AudioCommon/WASAPIStream.cpp') diff --git a/Source/Core/AudioCommon/WASAPIStream.cpp b/Source/Core/AudioCommon/WASAPIStream.cpp index 174ffbc9cb..9571b175bc 100644 --- a/Source/Core/AudioCommon/WASAPIStream.cpp +++ b/Source/Core/AudioCommon/WASAPIStream.cpp @@ -15,6 +15,8 @@ #include +#include + #include "Common/Assert.h" #include "Common/HRWrap.h" #include "Common/Logging/Log.h" @@ -110,7 +112,7 @@ static void ForEachNamedDevice(const std::function, std:: { ComPtr device; devices->Item(i, &device); - if (!HandleWinAPI("Failed to get device " + std::to_string(i), result)) + if (!HandleWinAPI(fmt::format("Failed to get device {}", i), result)) continue; ComPtr device_properties; -- cgit v1.2.3