use 'auto' for very long type

This commit is contained in:
Andrew Meadows 2018-03-06 11:06:49 -08:00
parent 24635b0451
commit f83c6000df

View file

@ -71,7 +71,7 @@ void PickCacheOptimizer<T>::update(std::unordered_map<uint32_t, std::shared_ptr<
uint32_t& nextToUpdate, uint64_t expiry, bool shouldPickHUD) { uint32_t& nextToUpdate, uint64_t expiry, bool shouldPickHUD) {
PickCache results; PickCache results;
const uint32_t INVALID_PICK_ID = 0; const uint32_t INVALID_PICK_ID = 0;
std::unordered_map<uint32_t, std::shared_ptr<PickQuery>>::iterator itr = picks.begin(); auto iter = picks.begin();
if (nextToUpdate != INVALID_PICK_ID) { if (nextToUpdate != INVALID_PICK_ID) {
itr = picks.find(nextToUpdate); itr = picks.find(nextToUpdate);
if (itr == picks.end()) { if (itr == picks.end()) {