summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-01-12 16:59:19 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-13 11:11:08 -0800
commit0cc211d1efc2cd8a02de0b9bf92a3f10c3fec99b (patch)
treec5b2a0c8db109e80e51a098b84ef2bdc541074f5
parentff8965c40bff1dd945635cc54879804ce9d4bdc4 (diff)
Use fmt::format_string
-rw-r--r--Source/Core/Core/IOS/FS/FileSystemProxy.cpp4
-rw-r--r--Source/Core/VideoCommon/ShaderGenCommon.h2
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 7113b169e6..6cc86020dd 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 <typename... Args>
-static void LogResult(ResultCode code, std::string_view format, Args&&... args)
+static void LogResult(ResultCode code, fmt::format_string<Args...> format, Args&&... args)
{
const std::string command = fmt::format(format, std::forward<Args>(args)...);
const auto type =
@@ -112,7 +112,7 @@ static void LogResult(ResultCode code, std::string_view format, Args&&... args)
}
template <typename T, typename... Args>
-static void LogResult(const Result<T>& result, std::string_view format, Args&&... args)
+static void LogResult(const Result<T>& result, fmt::format_string<Args...> format, Args&&... args)
{
const auto result_code = result.Succeeded() ? ResultCode::Success : result.Error();
LogResult(result_code, format, std::forward<Args>(args)...);
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.h b/Source/Core/VideoCommon/ShaderGenCommon.h
index b787035a36..edbd931db9 100644
--- a/Source/Core/VideoCommon/ShaderGenCommon.h
+++ b/Source/Core/VideoCommon/ShaderGenCommon.h
@@ -107,7 +107,7 @@ public:
// Writes format strings using fmtlib format strings.
template <typename... Args>
- void Write(std::string_view format, Args&&... args)
+ void Write(fmt::format_string<Args...> format, Args&&... args)
{
fmt::format_to(std::back_inserter(m_buffer), format, std::forward<Args>(args)...);
}