Applied performance-for-range-copy clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-21 18:14:13 +01:00
parent 14128374ef
commit 71c772ac04
3 changed files with 31 additions and 26 deletions

View File

@@ -287,7 +287,7 @@ template <typename C, typename D>
void generator<C, D>::generate_notes(
std::ostream &ostr, const model::element &e) const
{
for (auto decorator : e.decorators()) {
for (const auto &decorator : e.decorators()) {
auto note = std::dynamic_pointer_cast<decorators::note>(decorator);
if (note && note->applies_to_diagram(m_config.name)) {
ostr << "note " << note->position << " of " << e.alias() << '\n'