From 7a15be83bf0692a927d2d2876190e63a99eccad2 Mon Sep 17 00:00:00 2001 From: Cho Date: Fri, 20 Jun 2014 22:15:49 +0100 Subject: Updated LLExperienceListResponder to use new LLCurl::Responder interface to fix ACME-1533 --- indra/newview/llfloaterexperiences.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llfloaterexperiences.cpp b/indra/newview/llfloaterexperiences.cpp index 5ed77d3680..98b26f5ac9 100644 --- a/indra/newview/llfloaterexperiences.cpp +++ b/indra/newview/llfloaterexperiences.cpp @@ -43,7 +43,7 @@ #define SHOW_RECENT_TAB (0) -class LLExperienceListResponder : public LLHTTPClient::Responder +class LLExperienceListResponder : public LLCurl::Responder { public: typedef std::map NameMap; @@ -57,7 +57,7 @@ public: LLHandle mParent; NameMap mNameMap; const std::string mErrorMessage; - virtual void result(const LLSD& content) + /*virtual*/ void httpSuccess() { if(mParent.isDead()) return; @@ -68,16 +68,16 @@ public: NameMap::iterator it = mNameMap.begin(); while(it != mNameMap.end()) { - if(content.has(it->first)) + if(getContent().has(it->first)) { LLPanelExperiences* tab = (LLPanelExperiences*)tabs->getPanelByName(it->second); if(tab) { - const LLSD& ids = content[it->first]; + const LLSD& ids = getContent()[it->first]; tab->setExperienceList(ids); if(!mCallback.empty()) { - mCallback(tab, content); + mCallback(tab, getContent()); } } } @@ -85,10 +85,10 @@ public: } } - virtual void error(U32 status, const std::string& reason) + /*virtual*/ void httpFailure() { LLSD subs; - subs["ERROR_MESSAGE"] = reason; + subs["ERROR_MESSAGE"] = getReason(); LLNotificationsUtil::add(mErrorMessage, subs); } }; -- cgit v1.2.3