summaryrefslogtreecommitdiff
path: root/Source/Core/Common/ArmCPUDetect.cpp
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-01-24 14:25:49 -0500
committerLioncash <mai.iam2048@gmail.com>2023-01-24 14:58:20 -0500
commite5b91f00b0688d5cba6870da6d6ad3300097b07f (patch)
tree09ec8ac31ff935d63aa9c06004802156ac96ebf5 /Source/Core/Common/ArmCPUDetect.cpp
parentba6ee9d7ba9730e5b2165ff0ee18cbc23762b129 (diff)
Common: Replace StringBeginsWith/StringEndsWith with std equivalents
Obsoletes these functions in favor of the standard member functions added in C++20.
Diffstat (limited to 'Source/Core/Common/ArmCPUDetect.cpp')
-rw-r--r--Source/Core/Common/ArmCPUDetect.cpp2
1 files changed, 1 insertions, 1 deletions
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)