diff options
author | David Robillard <d@drobilla.net> | 2020-02-09 14:41:18 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-02-09 14:41:18 +0100 |
commit | 3c29614ed1452868909840fc5307652ecc26d295 (patch) | |
tree | bf6cf3425f40538833e1d4dc47efe763b7ccf949 /src/PatchageCanvas.cpp | |
parent | af5ec4bdda21e9a2f76f22050216a0b1cbbed575 (diff) | |
download | patchage-3c29614ed1452868909840fc5307652ecc26d295.tar.gz patchage-3c29614ed1452868909840fc5307652ecc26d295.tar.bz2 patchage-3c29614ed1452868909840fc5307652ecc26d295.zip |
Use range-based for loops in more places
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 828096b..1d64c1b 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -186,10 +186,8 @@ PatchageCanvas::remove_ports(bool (*pred)(const PatchagePort*)) i = next; } - for (std::set<PatchageModule*>::iterator i = data.empty.begin(); - i != data.empty.end(); - ++i) { - delete *i; + for (PatchageModule* m : data.empty) { + delete m; } } |