summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-08 04:01:16 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-08 04:01:16 +0300
commitdd3b6609584e59e8c3b67624c9800c5d0e2a2208 (patch)
treec946ac4ba93801694222174708a976d529251afc /src/utils
parent90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8 (diff)
downloadmv-dd3b6609584e59e8c3b67624c9800c5d0e2a2208.tar.gz
mv-dd3b6609584e59e8c3b67624c9800c5d0e2a2208.tar.bz2
mv-dd3b6609584e59e8c3b67624c9800c5d0e2a2208.tar.xz
mv-dd3b6609584e59e8c3b67624c9800c5d0e2a2208.zip
Improve performance in string find operation in cpu.cpp
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/cpu.cpp2
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);