Skip to content

Commit 24beed8

Browse files
committed
cwe-name-lookup: use auto to deduce iterator types
1 parent 65c057a commit 24beed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/cwe-name-lookup.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ bool CweNameLookup::handleLine(const TStringList &fields)
7171

7272
const std::string& CweNameLookup::lookup(const int cwe) const
7373
{
74-
const Private::TMap::const_iterator it = d->nameByCwe.find(cwe);
74+
const auto it = d->nameByCwe.find(cwe);
7575
return (d->nameByCwe.end() == it)
7676
? d->emp
7777
: it->second;

0 commit comments

Comments
 (0)