diff options
| author | Dr. Dystopia <jonis9898@hotmail.com> | 2026-07-19 20:30:21 +0200 |
|---|---|---|
| committer | Dr. Dystopia <jonis9898@hotmail.com> | 2026-07-28 12:39:54 +0200 |
| commit | 08e183d322981c705ba9fc7f4f1476cc7e7e5f23 (patch) | |
| tree | 1f64ee7d6bfb5038e37fc2256f0a067f3a648700 /Source/Core/AudioCommon/WASAPIStream.cpp | |
| parent | d742aa8b4c4d052f7dceaa39022b1fe3996f1781 (diff) | |
Replace string concatination with `fmt::format`
Diffstat (limited to 'Source/Core/AudioCommon/WASAPIStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/WASAPIStream.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <thread> +#include <fmt/format.h> + #include "Common/Assert.h" #include "Common/HRWrap.h" #include "Common/Logging/Log.h" @@ -110,7 +112,7 @@ static void ForEachNamedDevice(const std::function<bool(ComPtr<IMMDevice>, std:: { ComPtr<IMMDevice> 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<IPropertyStore> device_properties; |
