From 0cc211d1efc2cd8a02de0b9bf92a3f10c3fec99b Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 12 Jan 2022 16:59:19 -0800 Subject: [PATCH] Use fmt::format_string --- Source/Core/Core/IOS/FS/FileSystemProxy.cpp | 4 ++-- Source/Core/VideoCommon/ShaderGenCommon.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/IOS/FS/FileSystemProxy.cpp b/Source/Core/Core/IOS/FS/FileSystemProxy.cpp index 7113b169e614..6cc86020dd4f 100644 --- a/Source/Core/Core/IOS/FS/FileSystemProxy.cpp +++ b/Source/Core/Core/IOS/FS/FileSystemProxy.cpp @@ -101,7 +101,7 @@ void FSDevice::DoState(PointerWrap& p) } template -static void LogResult(ResultCode code, std::string_view format, Args&&... args) +static void LogResult(ResultCode code, fmt::format_string format, Args&&... args) { const std::string command = fmt::format(format, std::forward(args)...); const auto type = @@ -112,7 +112,7 @@ static void LogResult(ResultCode code, std::string_view format, Args&&... args) } template -static void LogResult(const Result& result, std::string_view format, Args&&... args) +static void LogResult(const Result& result, fmt::format_string format, Args&&... args) { const auto result_code = result.Succeeded() ? ResultCode::Success : result.Error(); LogResult(result_code, format, std::forward(args)...); diff --git a/Source/Core/VideoCommon/ShaderGenCommon.h b/Source/Core/VideoCommon/ShaderGenCommon.h index b787035a36a4..edbd931db9fb 100644 --- a/Source/Core/VideoCommon/ShaderGenCommon.h +++ b/Source/Core/VideoCommon/ShaderGenCommon.h @@ -107,7 +107,7 @@ class ShaderCode : public ShaderGeneratorInterface // Writes format strings using fmtlib format strings. template - void Write(std::string_view format, Args&&... args) + void Write(fmt::format_string format, Args&&... args) { fmt::format_to(std::back_inserter(m_buffer), format, std::forward(args)...); }