Skip to content

Commit

Permalink
Use fmt::format_string
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokechu22 committed Jan 13, 2022
1 parent ff8965c commit 0cc211d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/IOS/FS/FileSystemProxy.cpp
Expand Up @@ -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 =
Expand All @@ -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)...);
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/ShaderGenCommon.h
Expand Up @@ -107,7 +107,7 @@ class ShaderCode : public ShaderGeneratorInterface

// 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)...);
}
Expand Down

0 comments on commit 0cc211d

Please sign in to comment.