diff options
Diffstat (limited to 'src/base/QXmppBookmarkSet.cpp')
| -rw-r--r-- | src/base/QXmppBookmarkSet.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/base/QXmppBookmarkSet.cpp b/src/base/QXmppBookmarkSet.cpp index fd23969f..a36e6519 100644 --- a/src/base/QXmppBookmarkSet.cpp +++ b/src/base/QXmppBookmarkSet.cpp @@ -210,8 +210,7 @@ void QXmppBookmarkSet::toXml(QXmlStreamWriter *writer) const { writer->writeStartElement("storage"); writer->writeAttribute("xmlns", ns_bookmarks); - foreach (const QXmppBookmarkConference &conference, m_conferences) - { + for (const auto &conference : m_conferences) { writer->writeStartElement("conference"); if (conference.autoJoin()) helperToXmlAddAttribute(writer, "autojoin", "true"); @@ -221,8 +220,7 @@ void QXmppBookmarkSet::toXml(QXmlStreamWriter *writer) const helperToXmlAddTextElement(writer, "nick", conference.nickName()); writer->writeEndElement(); } - foreach (const QXmppBookmarkUrl &url, m_urls) - { + for (const auto &url : m_urls) { writer->writeStartElement("url"); helperToXmlAddAttribute(writer, "name", url.name()); helperToXmlAddAttribute(writer, "url", url.url().toString()); |
