Apply performance-faster-string-find

This commit is contained in:
Alexey Rybalchenko
2021-09-13 12:22:57 +02:00
committed by Dennis Klein
parent f33c597f34
commit 310204a89d
2 changed files with 3 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ unordered_map<string, int> ProgOptions::GetChannelInfoImpl() const
for (const auto& m : fVarMap) {
if (boost::regex_match(m.first, re)) {
string chan = m.first.substr(6);
string::size_type n = chan.find(".");
string::size_type n = chan.find('.');
string chanName = chan.substr(0, n);
if (info.find(chanName) == info.end()) {