[clang-tidy] use auto (#888)

Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-06-16 08:22:14 -07:00
committed by GitHub
parent 0b0bf35c48
commit a7a7908dc5
4 changed files with 8 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ Directives::Directives() : version{true, 1, 2}, tags{} {}
const std::string Directives::TranslateTagHandle(
const std::string& handle) const {
std::map<std::string, std::string>::const_iterator it = tags.find(handle);
auto it = tags.find(handle);
if (it == tags.end()) {
if (handle == "!!")
return "tag:yaml.org,2002:";