summaryrefslogtreecommitdiffstats
path: root/src/AtomWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/AtomWriter.cpp')
-rw-r--r--src/AtomWriter.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/AtomWriter.cpp b/src/AtomWriter.cpp
index b0cb2f27..1b4a1ca5 100644
--- a/src/AtomWriter.cpp
+++ b/src/AtomWriter.cpp
@@ -95,14 +95,13 @@ AtomWriter::forge_uri(const Raul::URI& uri)
void
AtomWriter::forge_properties(const Resource::Properties& properties)
{
- for (Resource::Properties::const_iterator i = properties.begin();
- i != properties.end(); ++i) {
- lv2_atom_forge_property_head(&_forge, _map.map_uri(i->first.c_str()), 0);
- if (i->second.type() == _forge.URI) {
- forge_uri(Raul::URI(i->second.get_uri()));
+ for (auto p : properties) {
+ lv2_atom_forge_property_head(&_forge, _map.map_uri(p.first.c_str()), 0);
+ if (p.second.type() == _forge.URI) {
+ forge_uri(Raul::URI(p.second.get_uri()));
} else {
- lv2_atom_forge_atom(&_forge, i->second.size(), i->second.type());
- lv2_atom_forge_write(&_forge, i->second.get_body(), i->second.size());
+ lv2_atom_forge_atom(&_forge, p.second.size(), p.second.type());
+ lv2_atom_forge_write(&_forge, p.second.get_body(), p.second.size());
}
}
}