Skip to content
Snippets Groups Projects
Verified Commit 3d9ac26a authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Remove all instances of the “map.find(key)->second” pattern

This is unsafe since the find() method can return a past-the-end iterator,
which should be tested for.

Replace most instances by calls to the std::map::at() method (which throws if
the key is unknown), and which is incidentally more readable.
parent 18037fd2
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment