From e5b91f00b0688d5cba6870da6d6ad3300097b07f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 24 Jan 2023 14:25:49 -0500 Subject: Common: Replace StringBeginsWith/StringEndsWith with std equivalents Obsoletes these functions in favor of the standard member functions added in C++20. --- Source/Core/Common/ArmCPUDetect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/ArmCPUDetect.cpp') diff --git a/Source/Core/Common/ArmCPUDetect.cpp b/Source/Core/Common/ArmCPUDetect.cpp index 43c0063f78..b55952cf2b 100644 --- a/Source/Core/Common/ArmCPUDetect.cpp +++ b/Source/Core/Common/ArmCPUDetect.cpp @@ -107,7 +107,7 @@ static std::string ReadCpuinfoField(const std::string& field) while (std::getline(file, line)) { - if (!StringBeginsWith(line, field)) + if (!line.starts_with(field)) continue; auto non_tab = line.find_first_not_of("\t", field.length()); if (non_tab == line.npos) -- cgit v1.2.3