From a2a1e04fc9c26c7d4ae8af5d1229a906c0ae066d Mon Sep 17 00:00:00 2001 From: JosJuice Date: Mon, 8 Jul 2019 13:35:53 +0200 Subject: StringUtil: Use std::string_view more --- Source/Core/AudioCommon/CubebUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/AudioCommon') diff --git a/Source/Core/AudioCommon/CubebUtils.cpp b/Source/Core/AudioCommon/CubebUtils.cpp index 07f4f530d6..5eaaaf62cd 100644 --- a/Source/Core/AudioCommon/CubebUtils.cpp +++ b/Source/Core/AudioCommon/CubebUtils.cpp @@ -26,7 +26,7 @@ static void LogCallback(const char* format, ...) const char* filename = va_arg(args, const char*) + s_path_cutoff_point; int lineno = va_arg(args, int); - std::string adapted_format = StripSpaces(format + strlen("%s:%d:")); + std::string adapted_format(StripSpaces(format + strlen("%s:%d:"))); LogManager::GetInstance()->LogWithFullPath(LogTypes::LNOTICE, LogTypes::AUDIO, filename, lineno, adapted_format.c_str(), args); -- cgit v1.2.3