summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterregioninfo.cpp
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2014-06-19 01:06:23 +0100
committerCho <cho@lindenlab.com>2014-06-19 01:06:23 +0100
commit03abd8dc2033c9166d618c9171975f1dc1d4aaa9 (patch)
tree50df41a5fb60f10a240c8a9af4cab3edb69d99c5 /indra/newview/llfloaterregioninfo.cpp
parent299921de323eb9b6844cd7b6f6b8da3490ee3747 (diff)
Updated LLRegionExperienceResponder and LLExperienceSearchResponder to use new interface
Diffstat (limited to 'indra/newview/llfloaterregioninfo.cpp')
-rwxr-xr-xindra/newview/llfloaterregioninfo.cpp17
1 files changed, 8 insertions, 9 deletions
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;
}
};