Bug 1318000 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in image/. draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Wed, 16 Nov 2016 17:39:05 +0200
changeset 439765 a549dd87ecc1fb5a5e49cea39771a9c6c0660062
parent 439375 79feeed4293336089590320a9f30a813fade8e3c
child 439766 270242c78f0e75cee5d0cd202bb83f883c858d42
push id36084
push userbmo:bpostelnicu@mozilla.com
push dateWed, 16 Nov 2016 15:44:53 +0000
bugs1318000
milestone53.0a1
Bug 1318000 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in image/. MozReview-Commit-ID: DpS7zsWD75j
image/imgLoader.cpp
--- a/image/imgLoader.cpp
+++ b/image/imgLoader.cpp
@@ -933,17 +933,17 @@ imgCacheQueue::GetSize() const
 }
 
 #include <algorithm>
 using namespace std;
 
 void
 imgCacheQueue::Remove(imgCacheEntry* entry)
 {
-  queueContainer::iterator it = find(mQueue.begin(), mQueue.end(), entry);
+  auto it = find(mQueue.begin(), mQueue.end(), entry);
   if (it != mQueue.end()) {
     mSize -= (*it)->GetDataSize();
     mQueue.erase(it);
     MarkDirty();
   }
 }
 
 void