Bug 1318000 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in image/. r=jrmuizel
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Wed, 16 Nov 2016 17:39:05 +0200
changeset 323121 7505957987cef9f5e944568fb72ec8d06bd01a49
parent 323037 c8d1de55c6bfb14f68001a45a7f33a460ca221ed
child 323122 f6568e8ff9791f9c200afc6be5a33e1c829fce48
push id30970
push usercbook@mozilla.com
push dateFri, 18 Nov 2016 15:49:14 +0000
treeherdermozilla-central@6186126f502b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1318000
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1318000 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in image/. r=jrmuizel 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