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
|
||||
{
|
||||
// every entry starts with "[" + random integer = "]"
|
||||
for (map<string, string>::const_iterator iter = entryMap_.begin();
|
||||
iter != entryMap_.end(); ++iter) {
|
||||
for (const auto &iter : entryMap_) {
|
||||
// if the file does not exist anymore, we do not save it
|
||||
if (iter->first == RECORDING_PATH_KEY and not file_exists(iter->second))
|
||||
o << iter->first << "=" << "" << std::endl;
|
||||
if (iter.first == RECORDING_PATH_KEY and not file_exists(iter.second))
|
||||
o << iter.first << "=" << "" << std::endl;
|
||||
else
|
||||
o << iter->first << "=" << iter->second << std::endl;
|
||||
o << iter.first << "=" << iter.second << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user