mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Fix clang-tidy performance-faster-string-find warnings
This commit is contained in:
parent
f4c47d0357
commit
178d7f4cd0
2 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,7 @@ string CPPCompile::CaptureName(const ID* c) const {
|
|||
// We want to strip both the module and any inlining appendage.
|
||||
auto tn = trim_name(c);
|
||||
|
||||
auto appendage = tn.find(".");
|
||||
auto appendage = tn.find('.');
|
||||
if ( appendage != string::npos )
|
||||
tn.erase(tn.begin() + appendage, tn.end());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue