diff --git a/indra/llcorehttp/httpcommon.h b/indra/llcorehttp/httpcommon.h index 69a343655ef7fb862faf72a7211bc03fe9b95fa3..01df4f934d04db6298e9c87767599fcf9f60213c 100644 --- a/indra/llcorehttp/httpcommon.h +++ b/indra/llcorehttp/httpcommon.h @@ -299,7 +299,14 @@ enum HttpError struct HttpStatus { typedef unsigned short type_enum_t; - + enum : type_enum_t + { + EXT_CURL_EASY = 0, ///< mStatus is an error from a curl_easy_*() call + EXT_CURL_MULTI = 1, ///< mStatus is an error from a curl_multi_*() call + LLCORE = 2 ///< mStatus is an HE_* error code + ///< 100-999 directly represent HTTP status codes + }; + HttpStatus() { mDetails = boost::make_shared<Details>(LLCORE, HE_SUCCESS); @@ -344,10 +351,6 @@ struct HttpStatus return *this; } - static const type_enum_t EXT_CURL_EASY = 0; ///< mStatus is an error from a curl_easy_*() call - static const type_enum_t EXT_CURL_MULTI = 1; ///< mStatus is an error from a curl_multi_*() call - static const type_enum_t LLCORE = 2; ///< mStatus is an HE_* error code - ///< 100-999 directly represent HTTP status codes /// Test for successful status in the code regardless /// of error source (internal, libcurl). ///