summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-05-14 05:10:31 +0000
committerDavid Robillard <d@drobilla.net>2015-05-14 05:10:31 +0000
commit63d4ffa098e016a9680b4b1b1f209ab3bb3dbd8c (patch)
tree1ab7c937195bea87c742177f63cd19c6d3b6fe50 /src
parent2f7026265f4e7888dcd731f84213f78da07e78b2 (diff)
downloadingen-63d4ffa098e016a9680b4b1b1f209ab3bb3dbd8c.tar.gz
ingen-63d4ffa098e016a9680b4b1b1f209ab3bb3dbd8c.tar.bz2
ingen-63d4ffa098e016a9680b4b1b1f209ab3bb3dbd8c.zip
Fix ingen:prototype compatibility.
Fixes issue #1048. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5678 a436a847-0d15-0410-975c-d299462d15a1
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;
}