From 56d6e32b450c81829555a4cecfac6b96ce09ebdc Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Wed, 29 Apr 2015 09:11:27 -0700 Subject: Remove C++11 erase() replace = NULL with .reset() on smart pointers. --- indra/newview/llmediadataclient.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'indra/newview/llmediadataclient.cpp') diff --git a/indra/newview/llmediadataclient.cpp b/indra/newview/llmediadataclient.cpp index 770a37c275..ac742e0ce6 100755 --- a/indra/newview/llmediadataclient.cpp +++ b/indra/newview/llmediadataclient.cpp @@ -153,7 +153,8 @@ void mark_dead_and_remove_if(T &c, const PredicateMatchRequest &matchPred) if (matchPred(*it)) { (*it)->markDead(); - it = c.erase(it); + // *TDOO: When C++11 is in change the following line to: it = c.erase(it); + c.erase(it++); } else { @@ -271,7 +272,7 @@ LLMediaDataClient::Request::ptr_t LLMediaDataClient::dequeue() else { // Don't return this request -- it's not ready to be serviced. - request = NULL; + request.reset(); } } @@ -467,7 +468,7 @@ BOOL LLMediaDataClient::RetryTimer::tick() } // Release the ref to the request. - mRequest = NULL; + mRequest.reset() // Don't fire again return TRUE; -- cgit v1.2.3