diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 13:59:31 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | 2539411f2fd0f73b57bd3a8785e10228b32b3c93 (patch) | |
tree | 4c991c47e8e16ea914df0681359b2635dfbdd186 /src/client/PortModel.cpp | |
parent | ce23400cbd8cbe8c6a8712ae2ecf88d1053ebc99 (diff) | |
download | ingen-2539411f2fd0f73b57bd3a8785e10228b32b3c93.tar.gz ingen-2539411f2fd0f73b57bd3a8785e10228b32b3c93.tar.bz2 ingen-2539411f2fd0f73b57bd3a8785e10228b32b3c93.zip |
Fix unnecessary copies in for loops
Diffstat (limited to 'src/client/PortModel.cpp')
-rw-r--r-- | src/client/PortModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp index 6b2d011f..fa1a7abe 100644 --- a/src/client/PortModel.cpp +++ b/src/client/PortModel.cpp @@ -55,7 +55,7 @@ bool PortModel::is_uri() const { // FIXME: Resource::has_property doesn't work, URI != URID - for (auto p : properties()) { + for (const auto& p : properties()) { if (p.second.type() == _uris.atom_URID && static_cast<LV2_URID>(p.second.get<int32_t>()) == _uris.atom_URID) { return true; |