| 175 | } |
| 176 | |
| 177 | const User* UserManager::getUserByHash(const std::string& hash) const |
| 178 | { |
| 179 | auto it = _usersByHash.find(hash); |
| 180 | if (it != _usersByHash.end()) |
| 181 | { |
| 182 | return it->second.get(); |
| 183 | } |
| 184 | return nullptr; |
| 185 | } |
| 186 | |
| 187 | const User* UserManager::getUserByName(const std::string& name) const |
| 188 | { |
no test coverage detected