Bug 1577867 - Remove using namespace std from image/ r=tnikkel

Differential Revision: https://phabricator.services.mozilla.com/D44250

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eric Rahm 2019-08-30 19:58:25 +00:00
Родитель dc486dab60
Коммит f6aea79235
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -7,6 +7,8 @@
// Undefine windows version of LoadImage because our code uses that name. // Undefine windows version of LoadImage because our code uses that name.
#undef LoadImage #undef LoadImage
#include <algorithm>
#include "ImageLogging.h" #include "ImageLogging.h"
#include "imgLoader.h" #include "imgLoader.h"
@ -998,9 +1000,6 @@ void imgCacheQueue::UpdateSize(int32_t diff) { mSize += diff; }
uint32_t imgCacheQueue::GetSize() const { return mSize; } uint32_t imgCacheQueue::GetSize() const { return mSize; }
#include <algorithm>
using namespace std;
void imgCacheQueue::Remove(imgCacheEntry* entry) { void imgCacheQueue::Remove(imgCacheEntry* entry) {
uint64_t index = mQueue.IndexOf(entry); uint64_t index = mQueue.IndexOf(entry);
if (index == queueContainer::NoIndex) { if (index == queueContainer::NoIndex) {