summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2010-02-28 11:25:11 -0700
committerXiaohong Bao <bao@lindenlab.com>2010-02-28 11:25:11 -0700
commit60fde8d512cfe7456ad5756c22f8bd9284c0c14e (patch)
tree38ea44e597fff90e5820efbba326dc1021309d62 /indra
parentb20307a683073c415804966ed5b363fb68879ee5 (diff)
parent7b2e66b4d9200e67c8aa62e0e9dd749ee5e6e4e0 (diff)
Automated merge with ssh://hg.lindenlab.com/viewer/viewer-2-0/
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewertexturelist.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp
index eaef93a81d..d8918bdb73 100644
--- a/indra/newview/llviewertexturelist.cpp
+++ b/indra/newview/llviewertexturelist.cpp
@@ -502,7 +502,10 @@ void LLViewerTextureList::addImageToList(LLViewerFetchedTexture *image)
{
llerrs << "LLViewerTextureList::addImageToList - Image already in list" << llendl;
}
- llassert((mImageList.insert(image)).second == true) ;
+ if((mImageList.insert(image)).second != true)
+ {
+ llerrs << "Error happens when insert image to mImageList!" << llendl ;
+ }
image->setInImageList(TRUE) ;
}
@@ -520,7 +523,10 @@ void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image)
}
llerrs << "LLViewerTextureList::removeImageFromList - Image not in list" << llendl;
}
- llassert(mImageList.erase(image) == 1) ;
+ if(mImageList.erase(image) != 1)
+ {
+ llerrs << "Error happens when remove image from mImageList!" << llendl ;
+ }
image->setInImageList(FALSE) ;
}