Skip to content

Commit 212e735

Browse files
Update checkstl.cpp
1 parent 8bb772d commit 212e735

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/checkstl.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,8 +3338,8 @@ void CheckStlImpl::eraseIteratorOutOfBoundsError(const Token *ftok, const Token*
33383338
}
33393339

33403340
const Severity severity = isConditional ? Severity::warning : Severity::error;
3341-
const std::string id = isConditional ? "eraseIteratorOutOfBoundsCond" : "eraseIteratorOutOfBounds";
3342-
reportError(ftok, severity,
3341+
const char* id = isConditional ? "eraseIteratorOutOfBoundsCond" : "eraseIteratorOutOfBounds";
3342+
reportError(getErrorPath(ftok, val, msg), severity,
33433343
id,
33443344
msg, CWE628, Certainty::normal);
33453345
}

0 commit comments

Comments
 (0)