Skip to content

Commit 7946980

Browse files
Remove :: from ::utility (workaround two-phase msvc bug)
1 parent 05e474a commit 7946980

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Release/include/cpprest/http_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ class http_client
603603
const method &mtd,
604604
const utf16string &path_query_fragment,
605605
const utf16string &body_data,
606-
const utf16string &content_type = ::utility::conversions::to_utf16string("text/plain"),
606+
const utf16string &content_type = utility::conversions::to_utf16string("text/plain"),
607607
const pplx::cancellation_token &token = pplx::cancellation_token::none())
608608
{
609609
http_request msg(mtd);

Release/include/cpprest/http_msg.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ class http_response
568568
/// <remarks>
569569
/// This will overwrite any previously set body data and "Content-Type" header.
570570
/// </remarks>
571-
void set_body(const utf16string &body_text, utf16string content_type = ::utility::conversions::to_utf16string("text/plain"))
571+
void set_body(const utf16string &body_text, utf16string content_type = utility::conversions::to_utf16string("text/plain"))
572572
{
573573
if (content_type.find(::utility::conversions::to_utf16string("charset=")) != content_type.npos)
574574
{
@@ -978,7 +978,7 @@ class http_request
978978
/// <remarks>
979979
/// This will overwrite any previously set body data and "Content-Type" header.
980980
/// </remarks>
981-
void set_body(const utf16string &body_text, utf16string content_type = ::utility::conversions::to_utf16string("text/plain"))
981+
void set_body(const utf16string &body_text, utf16string content_type = utility::conversions::to_utf16string("text/plain"))
982982
{
983983
if(content_type.find(::utility::conversions::to_utf16string("charset=")) != content_type.npos)
984984
{
@@ -1207,7 +1207,7 @@ class http_request
12071207
// Callers of this function do NOT need to block waiting for the response to be
12081208
/// sent to before the body data is destroyed or goes out of scope.
12091209
/// </remarks>
1210-
pplx::task<void> reply(http::status_code status, const utf16string &body_data, const utf16string &content_type = ::utility::conversions::to_utf16string("text/plain")) const
1210+
pplx::task<void> reply(http::status_code status, const utf16string &body_data, const utf16string &content_type = utility::conversions::to_utf16string("text/plain")) const
12111211
{
12121212
http_response response(status);
12131213
response.set_body(body_data, content_type);

0 commit comments

Comments
 (0)