From 03abd8dc2033c9166d618c9171975f1dc1d4aaa9 Mon Sep 17 00:00:00 2001 From: Cho Date: Thu, 19 Jun 2014 01:06:23 +0100 Subject: Updated LLRegionExperienceResponder and LLExperienceSearchResponder to use new interface --- indra/newview/llfloaterregioninfo.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'indra/newview/llfloaterregioninfo.cpp') diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp index e7a8e12039..f70152fc59 100755 --- a/indra/newview/llfloaterregioninfo.cpp +++ b/indra/newview/llfloaterregioninfo.cpp @@ -3629,16 +3629,15 @@ public: LLRegionExperienceResponder(callback_t callback) : mCallback(callback) { } - void completed(U32 status, const std::string& reason, const LLSD& content) +protected: + /*virtual*/ void httpSuccess() { - if (isGoodStatus(status)) - { - mCallback(content); - } - else - { - LL_WARNS() << "experience responder failed [status:" << status << "]: " << content << LL_ENDL; - } + mCallback(getContent()); + } + + /*virtual*/ void httpFailure() + { + LL_WARNS() << "experience responder failed [status:" << getStatus() << "]: " << getContent() << LL_ENDL; } }; -- cgit v1.2.3