summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturefetch.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2015-10-15 10:12:58 -0700
committerRider Linden <rider@lindenlab.com>2015-10-15 10:12:58 -0700
commit3fdd5abf96fc945bd28038cf9d5d2533c7c9564e (patch)
tree9ea5a134f6d4daf2bd681313d171f9dd1f9df813 /indra/newview/lltexturefetch.cpp
parenteca891e2618581e90c79f0c141b1c920f2577efe (diff)
MAINT-5732: Issue in texture_load example and some comments regarding NoOpDeletor
Diffstat (limited to 'indra/newview/lltexturefetch.cpp')
-rwxr-xr-xindra/newview/lltexturefetch.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp
index d509f3e7c7..1f966dc76f 100755
--- a/indra/newview/lltexturefetch.cpp
+++ b/indra/newview/lltexturefetch.cpp
@@ -256,9 +256,17 @@ static const S32 HTTP_REQUESTS_RANGE_END_MAX = 20000000;
//////////////////////////////////////////////////////////////////////////////
namespace
{
+ // The NoOpDeletor is used when passing certain objects (the LLTextureFetchWorker and
+ // the LLTextureFetchDebugger) in a smart pointer below for passage into
+ // the LLCore::Http libararies. When the smart pointer is destroyed, no
+ // action will be taken since we do not in these cases want the object to
+ // be destroyed at the end of the call.
+ //
+ // *NOTE$: Yes! It is "Deletor"
+ // http://english.stackexchange.com/questions/4733/what-s-the-rule-for-adding-er-vs-or-when-nouning-a-verb
+ // "delete" derives from Latin "deletus"
void NoOpDeletor(LLCore::HttpHandler *)
- {
- }
+ { /*NoOp*/ }
}
static const char* e_state_name[] =