summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/events/CreateBlock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/events/CreateBlock.cpp b/src/server/events/CreateBlock.cpp
index 2b0e8268..8e1ebfe4 100644
--- a/src/server/events/CreateBlock.cpp
+++ b/src/server/events/CreateBlock.cpp
@@ -72,10 +72,10 @@ CreateBlock::pre_process()
// Map old ingen:prototype to new lv2:prototype
auto range = _properties.equal_range(uris.ingen_prototype);
for (auto i = range.first; i != range.second;) {
- const auto& value = i->second;
- auto next = i;
+ const auto value = i->second;
+ auto next = i;
next = _properties.erase(i);
- _properties.insert(std::make_pair(uris.lv2_prototype, i->second));
+ _properties.insert(std::make_pair(uris.lv2_prototype, value));
i = next;
}