diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-08 04:01:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-08 04:01:16 +0300 |
commit | dd3b6609584e59e8c3b67624c9800c5d0e2a2208 (patch) | |
tree | c946ac4ba93801694222174708a976d529251afc /src/utils/cpu.cpp | |
parent | 90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8 (diff) | |
download | manaverse-dd3b6609584e59e8c3b67624c9800c5d0e2a2208.tar.gz manaverse-dd3b6609584e59e8c3b67624c9800c5d0e2a2208.tar.bz2 manaverse-dd3b6609584e59e8c3b67624c9800c5d0e2a2208.tar.xz manaverse-dd3b6609584e59e8c3b67624c9800c5d0e2a2208.zip |
Improve performance in string find operation in cpu.cpp
Diffstat (limited to 'src/utils/cpu.cpp')
-rw-r--r-- | src/utils/cpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |