diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llmath/v3color.h | 4 | ||||
| -rw-r--r-- | indra/llmessage/llcorehttputil.cpp | 4 | ||||
| -rw-r--r-- | indra/llwebrtc/llwebrtc_impl.h | 6 | ||||
| -rw-r--r-- | indra/newview/llappviewerwin32.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/lltranslate.cpp | 16 | ||||
| -rw-r--r-- | indra/newview/llvoicewebrtc.cpp | 2 | 
6 files changed, 17 insertions, 17 deletions
| diff --git a/indra/llmath/v3color.h b/indra/llmath/v3color.h index 821c17f03d..f7af469e66 100644 --- a/indra/llmath/v3color.h +++ b/indra/llmath/v3color.h @@ -209,10 +209,6 @@ inline LLColor3::LLColor3(const F32 *vec)      mV[VBLUE] = vec[VBLUE];  } -#if LL_WINDOWS -# pragma warning( disable : 4996 ) // strncpy teh sux0r -#endif -  inline LLColor3::LLColor3(const char* color_string) // takes a string of format "RRGGBB" where RR is hex 00..FF  {      if (strlen(color_string) <  6)      /* Flawfinder: ignore */ diff --git a/indra/llmessage/llcorehttputil.cpp b/indra/llmessage/llcorehttputil.cpp index 3fdc691141..918a69be6f 100644 --- a/indra/llmessage/llcorehttputil.cpp +++ b/indra/llmessage/llcorehttputil.cpp @@ -585,7 +585,7 @@ LLSD HttpCoroJSONHandler::handleSuccess(LLCore::HttpResponse * response, LLCore:      LLCore::BufferArrayStream bas(body); -    boost::json::error_code ec; +    boost::system::error_code ec;      boost::json::value jsonRoot = boost::json::parse(bas, ec);      if(ec.failed())      {   // deserialization failed.  Record the reason and pass back an empty map for markup. @@ -610,7 +610,7 @@ LLSD HttpCoroJSONHandler::parseBody(LLCore::HttpResponse *response, bool &succes      LLCore::BufferArrayStream bas(body); -    boost::json::error_code ec; +    boost::system::error_code ec;      boost::json::value jsonRoot = boost::json::parse(bas, ec);      if (ec.failed())      { diff --git a/indra/llwebrtc/llwebrtc_impl.h b/indra/llwebrtc/llwebrtc_impl.h index 2fb5525519..c1acd77275 100644 --- a/indra/llwebrtc/llwebrtc_impl.h +++ b/indra/llwebrtc/llwebrtc_impl.h @@ -41,6 +41,7 @@  #include "llwebrtc.h"  // WebRTC Includes  #ifdef WEBRTC_WIN +#pragma warning(push)  #pragma warning(disable : 4996) // ignore 'deprecated.'  We don't use the functions marked                                  // deprecated in the webrtc headers, but msvc complains anyway.                                  // Clang doesn't, and that's generally what webrtc uses. @@ -63,7 +64,6 @@  #include "api/task_queue/default_task_queue_factory.h"  #include "modules/audio_device/include/audio_device_defines.h" -  namespace llwebrtc  { @@ -379,4 +379,8 @@ class LLWebRTCPeerConnectionImpl : public LLWebRTCPeerConnectionInterface,  } +#if WEBRTC_WIN +#pragma warning(pop) +#endif +  #endif // LLWEBRTC_IMPL_H diff --git a/indra/newview/llappviewerwin32.cpp b/indra/newview/llappviewerwin32.cpp index c4c6dd3327..c5686f160a 100644 --- a/indra/newview/llappviewerwin32.cpp +++ b/indra/newview/llappviewerwin32.cpp @@ -711,7 +711,7 @@ bool LLAppViewerWin32::init()          }          else          { -            boost::json::error_code ec; +            boost::system::error_code ec;              boost::json::value build_data = boost::json::parse(inf, ec);              if(ec.failed())              { diff --git a/indra/newview/lltranslate.cpp b/indra/newview/lltranslate.cpp index b6fbcaa330..72e30bd765 100644 --- a/indra/newview/lltranslate.cpp +++ b/indra/newview/lltranslate.cpp @@ -398,7 +398,7 @@ bool LLGoogleTranslationHandler::parseResponse(  {      const std::string& text = !body.empty() ? body : http_response["error_body"].asStringRef(); -    boost::json::error_code ec; +    boost::system::error_code ec;      boost::json::value root = boost::json::parse(text, ec);      if (ec.failed())      { @@ -431,7 +431,7 @@ void LLGoogleTranslationHandler::parseErrorResponse(      int& status,      std::string& err_msg)  { -    boost::json::error_code ec; +    boost::system::error_code ec;      auto message = root.find_pointer("/data/message", ec);      auto code = root.find_pointer("/data/code", ec);      if (!message || !code) @@ -456,7 +456,7 @@ bool LLGoogleTranslationHandler::parseTranslation(      std::string& translation,      std::string& detected_lang)  { -    boost::json::error_code ec; +    boost::system::error_code ec;      auto translated_text = root.find_pointer("/data/translations/0/translatedText", ec);      if (!translated_text) return false; @@ -656,7 +656,7 @@ bool LLAzureTranslationHandler::checkVerificationResponse(      // Expected: "{\"error\":{\"code\":400000,\"message\":\"One of the request inputs is not valid.\"}}"      // But for now just verify response is a valid json -    boost::json::error_code ec; +    boost::system::error_code ec;      boost::json::value root = boost::json::parse(response["error_body"].asString(), ec);      if (ec.failed())      { @@ -686,7 +686,7 @@ bool LLAzureTranslationHandler::parseResponse(      //Example:      // "[{\"detectedLanguage\":{\"language\":\"en\",\"score\":1.0},\"translations\":[{\"text\":\"Hello, what is your name?\",\"to\":\"en\"}]}]" -    boost::json::error_code ec; +    boost::system::error_code ec;      boost::json::value root = boost::json::parse(body, ec);      if (ec.failed())      { @@ -726,7 +726,7 @@ std::string LLAzureTranslationHandler::parseErrorResponse(      // Expected: "{\"error\":{\"code\":400000,\"message\":\"One of the request inputs is not valid.\"}}"      // But for now just verify response is a valid json with an error -    boost::json::error_code ec; +    boost::system::error_code ec;      boost::json::value root = boost::json::parse(body, ec);      if (ec.failed())      { @@ -956,7 +956,7 @@ bool LLDeepLTranslationHandler::parseResponse(      //Example:      // "{\"translations\":[{\"detected_source_language\":\"EN\",\"text\":\"test\"}]}" -    boost::json::error_code ec; +    boost::system::error_code ec;      boost::json::value root = boost::json::parse(body, ec);      if (ec.failed())      { @@ -1004,7 +1004,7 @@ std::string LLDeepLTranslationHandler::parseErrorResponse(      const std::string& body)  {      // Example: "{\"message\":\"One of the request inputs is not valid.\"}" -    boost::json::error_code ec; +    boost::system::error_code ec;      boost::json::value root = boost::json::parse(body, ec);      if (ec.failed())      { diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp index d18a32cb05..4f08dde6e0 100644 --- a/indra/newview/llvoicewebrtc.cpp +++ b/indra/newview/llvoicewebrtc.cpp @@ -2789,7 +2789,7 @@ void LLVoiceWebRTCConnection::OnDataReceivedImpl(const std::string &data, bool b          return;      } -    boost::json::error_code ec; +    boost::system::error_code ec;      boost::json::value voice_data_parsed = boost::json::parse(data, ec);      if (!ec)  // don't collect comments      { | 
