void StatData::appendOther (const StatData& other) { const ExtRecordsMap& otherFilesMap = other.extRecords(); typedef ExtRecordsMap::const_iterator It; for (It it = otherFilesMap.begin(); it != otherFilesMap.end(); ++it) { const QString& ext = it.key(); ExtensionRecord& record = ext_records_[ext]; record.count_ += it->count_; record.total_size_ += it->total_size_; } all_.count_ += other.all_.count_; all_.total_size_ += other.all_.total_size_; }