mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Modernize: Use range-based for loops for readability (#762)
Also run clang-format on these files as requested
This commit is contained in:

committed by
Jesse Beder

parent
21d75fa4cd
commit
b650bc8287
@@ -53,8 +53,8 @@ struct Token {
|
||||
|
||||
friend std::ostream& operator<<(std::ostream& out, const Token& token) {
|
||||
out << TokenNames[token.type] << std::string(": ") << token.value;
|
||||
for (std::size_t i = 0; i < token.params.size(); i++)
|
||||
out << std::string(" ") << token.params[i];
|
||||
for (const std::string& param : token.params)
|
||||
out << std::string(" ") << param;
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user