~ubuntu-branches/ubuntu/trusty/sflphone/trusty

« back to all changes in this revision

Viewing changes to daemon/src/config/yamlemitter.cpp

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (4.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20140128182336-jrsv0k9u6cawc068
Tags: 1.3.0-1
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
 
2
 *  Copyright (C) 2004-2013 Savoir-Faire Linux Inc.
3
3
 *  Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
4
4
 *
5
5
 *  This program is free software; you can redistribute it and/or modify
144
144
 
145
145
void YamlEmitter::addMappingItems(int mappingID, YamlNodeMap &iMap)
146
146
{
147
 
    for (YamlNodeMap::const_iterator i = iMap.begin(); i != iMap.end(); ++i)
148
 
        addMappingItem(mappingID, i->first, i->second);
 
147
    for (const auto &i : iMap)
 
148
        addMappingItem(mappingID, i.first, i.second);
149
149
}
150
150
 
151
151
void YamlEmitter::addMappingItem(int mappingid, const std::string &key, YamlNode *node)
195
195
            throw YamlEmitterException("Could not append mapping pair to mapping");
196
196
 
197
197
        Sequence *seq = seqnode->getSequence();
198
 
        for (Sequence::const_iterator it = seq->begin(); it != seq->end(); ++it) {
199
 
            YamlNode *yamlNode = *it;
 
198
        for (const auto &it : *seq) {
 
199
            YamlNode *yamlNode = it;
200
200
            int id;
201
201
            if ((id = yaml_document_add_mapping(&document_, NULL, YAML_BLOCK_MAPPING_STYLE)) == 0)
202
202
                throw YamlEmitterException("Could not add account mapping to document");