| 118 | } |
| 119 | |
| 120 | void ClearErrorMap(ErrorLogMap& errors) { |
| 121 | for (auto& err : errors) { |
| 122 | err.second.mutable_messages()->Clear(); |
| 123 | err.second.set_count(0); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | size_t ErrorCount(const ErrorLogMap& errors) { |
| 128 | ErrorLogMap::const_iterator cit = errors.find(TErrorCode::GENERAL); |