mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #28351: historyitem: use range-based for loops
This commit is contained in:
@ -103,13 +103,12 @@ bool HistoryItem::hasPeerNumber() const
|
|||||||
void HistoryItem::print(std::ostream &o) const
|
void HistoryItem::print(std::ostream &o) const
|
||||||
{
|
{
|
||||||
// every entry starts with "[" + random integer = "]"
|
// every entry starts with "[" + random integer = "]"
|
||||||
for (map<string, string>::const_iterator iter = entryMap_.begin();
|
for (const auto &iter : entryMap_) {
|
||||||
iter != entryMap_.end(); ++iter) {
|
|
||||||
// if the file does not exist anymore, we do not save it
|
// if the file does not exist anymore, we do not save it
|
||||||
if (iter->first == RECORDING_PATH_KEY and not file_exists(iter->second))
|
if (iter.first == RECORDING_PATH_KEY and not file_exists(iter.second))
|
||||||
o << iter->first << "=" << "" << std::endl;
|
o << iter.first << "=" << "" << std::endl;
|
||||||
else
|
else
|
||||||
o << iter->first << "=" << iter->second << std::endl;
|
o << iter.first << "=" << iter.second << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user