From dd3b6609584e59e8c3b67624c9800c5d0e2a2208 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 Jun 2017 04:01:16 +0300 Subject: Improve performance in string find operation in cpu.cpp --- src/utils/cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/cpu.cpp') diff --git a/src/utils/cpu.cpp b/src/utils/cpu.cpp index 93353baf5..0df53f06f 100644 --- a/src/utils/cpu.cpp +++ b/src/utils/cpu.cpp @@ -69,7 +69,7 @@ void Cpu::detect() std::string str = buf; if (findFirst(str, "flags")) { - size_t idx = str.find(":"); + size_t idx = str.find(':'); if (idx == std::string::npos) continue; str = str.substr(idx + 1); -- cgit v1.2.3-70-g09d2