summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertexturelist.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2013-09-18 18:24:16 -0700
committerGraham Linden <graham@lindenlab.com>2013-09-18 18:24:16 -0700
commit95e34d86b9d86b3b3c7d3c39620e35b06f8fa9cf (patch)
tree5a2652bef97f1bb2d76c0b86482cebe2b2505a79 /indra/newview/llviewertexturelist.cpp
parent93503a05ec905ef2a8df39802fdc3475c961f3bc (diff)
parentad777b46d0fe5d790e43efb1771e9f64f3ad3dfb (diff)
The unbearable lightness of being norspec
Diffstat (limited to 'indra/newview/llviewertexturelist.cpp')
-rwxr-xr-xindra/newview/llviewertexturelist.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp
index fc43abf844..2efe4665fa 100755
--- a/indra/newview/llviewertexturelist.cpp
+++ b/indra/newview/llviewertexturelist.cpp
@@ -566,12 +566,12 @@ void LLViewerTextureList::addImageToList(LLViewerFetchedTexture *image)
}
else
{
- if((mImageList.insert(image)).second != true)
- {
+ if((mImageList.insert(image)).second != true)
+ {
llwarns << "Error happens when insert image " << image->getID() << " into mImageList!" << llendl ;
- }
- image->setInImageList(TRUE) ;
}
+ image->setInImageList(TRUE) ;
+}
}
void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image)
@@ -585,30 +585,30 @@ void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image)
{
count = mImageList.erase(image) ;
if(count != 1)
- {
- llwarns << "Image " << image->getID()
+ {
+ llinfos << "Image " << image->getID()
<< " had mInImageList set but mImageList.erase() returned " << count
<< llendl;
}
}
else
{ // Something is wrong, image is expected in list or callers should check first
- llwarns << "Calling removeImageFromList() for " << image->getID()
+ llinfos << "Calling removeImageFromList() for " << image->getID()
<< " but doesn't have mInImageList set"
<< " ref count is " << image->getNumRefs()
<< llendl;
uuid_map_t::iterator iter = mUUIDMap.find(image->getID());
if(iter == mUUIDMap.end())
{
- llwarns << "Image " << image->getID() << " is also not in mUUIDMap!" << llendl ;
+ llinfos << "Image " << image->getID() << " is also not in mUUIDMap!" << llendl ;
}
else if (iter->second != image)
{
- llwarns << "Image " << image->getID() << " was in mUUIDMap but with different pointer" << llendl ;
- }
+ llinfos << "Image " << image->getID() << " was in mUUIDMap but with different pointer" << llendl ;
+ }
else
- {
- llwarns << "Image " << image->getID() << " was in mUUIDMap with same pointer" << llendl ;
+ {
+ llinfos << "Image " << image->getID() << " was in mUUIDMap with same pointer" << llendl ;
}
count = mImageList.erase(image) ;
if(count != 0)
@@ -618,7 +618,7 @@ void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image)
<< llendl;
}
}
-
+
image->setInImageList(FALSE) ;
}
@@ -626,15 +626,15 @@ void LLViewerTextureList::addImage(LLViewerFetchedTexture *new_image)
{
if (!new_image)
{
- llwarning("No image to add to image list", 0);
return;
}
+ llassert(new_image);
LLUUID image_id = new_image->getID();
LLViewerFetchedTexture *image = findImage(image_id);
if (image)
{
- llwarns << "Image with ID " << image_id << " already in list" << llendl;
+ llinfos << "Image with ID " << image_id << " already in list" << llendl;
}
sNumImages++;