diff options
author | Cho <cho@lindenlab.com> | 2014-06-20 22:15:49 +0100 |
---|---|---|
committer | Cho <cho@lindenlab.com> | 2014-06-20 22:15:49 +0100 |
commit | 7a15be83bf0692a927d2d2876190e63a99eccad2 (patch) | |
tree | 7fea320e975ca402ec31716939decdacf8f54604 | |
parent | c88b237473a75310722bac8d65a028a33a573215 (diff) |
Updated LLExperienceListResponder to use new LLCurl::Responder interface to fix ACME-1533
-rw-r--r-- | indra/newview/llfloaterexperiences.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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<std::string, std::string> NameMap; @@ -57,7 +57,7 @@ public: LLHandle<LLFloaterExperiences> 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); } }; |