Skip to content

Commit 9d0b717

Browse files
committed
cwe-mapper: use auto to deduce iterator types
1 parent a59df05 commit 9d0b717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/cwe-mapper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ bool CweMap::assignCwe(Defect &def) const
109109
// lookup by event
110110
const Private::TNumByEvent &row = rowIt->second;
111111
const DefEvent &evt = def.events[def.keyEventIdx];
112-
Private::TNumByEvent::const_iterator cweIt = row.find(evt.event);
112+
auto cweIt = row.find(evt.event);
113113
if (row.end() == cweIt) {
114114
if (cweDst)
115115
// CWE already assigned, stay silent

0 commit comments

Comments
 (0)