Bug 454376 imgLoader.cpp does not compile with Sun Studio 12 on Solaris r=joedraw sr=vladimir
authorGinn Chen <ginn.chen@sun.com>
Thu, 11 Sep 2008 19:34:17 +0800
changeset 19153 9a974f0ef019
parent 19152 7bb9ab71a0b9
child 19154 475542ec5079
push id1978
push userginn.chen@sun.com
push dateThu, 11 Sep 2008 11:36:44 +0000
treeherdermozilla-central@475542ec5079 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjoedraw, vladimir
bugs454376
milestone1.9.1b1pre
Bug 454376 imgLoader.cpp does not compile with Sun Studio 12 on Solaris r=joedraw sr=vladimir
modules/libpr0n/src/imgLoader.cpp
--- a/modules/libpr0n/src/imgLoader.cpp
+++ b/modules/libpr0n/src/imgLoader.cpp
@@ -285,16 +285,17 @@ void imgCacheQueue::UpdateSize(PRInt32 d
 }
 
 PRUint32 imgCacheQueue::GetSize() const
 {
   return mSize;
 }
 
 #include <algorithm>
+using namespace std;
 
 void imgCacheQueue::Remove(imgCacheEntry *entry)
 {
   queueContainer::iterator it = find(mQueue.begin(), mQueue.end(), entry);
   if (it != mQueue.end()) {
     mSize -= (*it)->GetDataSize();
     mQueue.erase(it);
     MarkDirty();