From 7cafa50bec52300ede4154862b6dc10d7b707e3b Mon Sep 17 00:00:00 2001 From: Cinder Biscuits <cinder@alchemyviewer.org> Date: Mon, 3 Aug 2015 02:56:01 +0000 Subject: [PATCH] Fix build --- indra/newview/llwebprofile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/indra/newview/llwebprofile.cpp b/indra/newview/llwebprofile.cpp index 84cbdf523b..69c30794b4 100755 --- a/indra/newview/llwebprofile.cpp +++ b/indra/newview/llwebprofile.cpp @@ -75,7 +75,6 @@ public: LLBufferStream istr(channels, buffer.get()); std::stringstream strstrm; strstrm << istr.rdbuf(); - const std::string body = strstrm.str(); if (getStatus() != HTTP_OK) { @@ -87,7 +86,7 @@ public: Json::Value root; Json::CharReaderBuilder reader; std::string errors; - if (!Json::parseFromStream(reader, std::istringstream(body), &root, &errors)) + if (!Json::parseFromStream(reader, strstrm, &root, &errors)) { LL_WARNS() << "Failed to parse upload config: " << errors << LL_ENDL; LLWebProfile::reportImageUploadStatus(false); -- GitLab