diff options
author | rider <rider@lindenlab.com> | 2015-10-16 12:15:33 -0700 |
---|---|---|
committer | rider <rider@lindenlab.com> | 2015-10-16 12:15:33 -0700 |
commit | 7c5643025804d94ce3efa92abf77e4965295072d (patch) | |
tree | 1dc56c5110ab91ee7505bc7653d497bee7833174 /indra | |
parent | 8d334ca1bf51dc1a0020f53cdd7a3927bdb7740c (diff) |
MAINT-5271: Microsoft is just too permissive.
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/llcorehttp/_httpoperation.h | 2 | ||||
-rwxr-xr-x | indra/llcorehttp/httprequest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcorehttp/_httpoperation.h b/indra/llcorehttp/_httpoperation.h index 417bdc7c50..1a75921c09 100755 --- a/indra/llcorehttp/_httpoperation.h +++ b/indra/llcorehttp/_httpoperation.h @@ -162,7 +162,7 @@ public: ptr_t ptr = findByHandle(handle); if (!ptr) return boost::shared_ptr< OPT >(); - return boost::dynamic_pointer_cast<HttpOpRequest>(ptr); + return boost::dynamic_pointer_cast< OPT >(ptr); } protected: diff --git a/indra/llcorehttp/httprequest.cpp b/indra/llcorehttp/httprequest.cpp index 1c7994927b..e09f0c3b18 100755 --- a/indra/llcorehttp/httprequest.cpp +++ b/indra/llcorehttp/httprequest.cpp @@ -443,13 +443,13 @@ HttpStatus HttpRequest::update(long usecs) ++iter) { // Swap op pointer for NULL; - op = *iter; *iter = NULL; + op.reset(); + op.swap(*iter); // Process operation op->visitNotifier(this); // We're done with the operation - op.reset(); } } } |