summaryrefslogtreecommitdiff
path: root/src/kolabconversions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kolabconversions.h')
-rw-r--r--src/kolabconversions.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kolabconversions.h b/src/kolabconversions.h
index 056839a..a48c2ae 100644
--- a/src/kolabconversions.h
+++ b/src/kolabconversions.h
@@ -59,7 +59,8 @@ std::string serializeObject(const Kolab::Note &note, const std::string prod = st
if (!note.categories().empty()) {
KolabXSD::Note::categories_sequence categories;
- BOOST_FOREACH(const std::string &c, note.categories()) {
+ const std::vector<std::string> &l = note.categories();
+ BOOST_FOREACH(const std::string &c, l) {
categories.push_back(c);
}
n.categories(categories);
@@ -84,7 +85,8 @@ std::string serializeObject(const Kolab::Note &note, const std::string prod = st
n.color(note.color());
if (!note.customProperties().empty()) {
- BOOST_FOREACH(const Kolab::CustomProperty &a, note.customProperties()) {
+ const std::vector<Kolab::CustomProperty> &l = note.customProperties();
+ BOOST_FOREACH(const Kolab::CustomProperty &a, l) {
n.x_custom().push_back(KolabXSD::CustomType(a.identifier, a.value));
}
}