mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
Fix unity build error by removing using namespace std;
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
committed by
Konstantin Pastbin
parent
b5b333c832
commit
215c19dcc7
@@ -6,10 +6,10 @@
|
||||
|
||||
#include <sstream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace platform
|
||||
{
|
||||
using std::string;
|
||||
|
||||
HttpClient::HttpClient(string const & url) : m_urlRequested(url) {}
|
||||
|
||||
bool HttpClient::RunHttpRequest(string & response, SuccessChecker checker /* = nullptr */)
|
||||
@@ -164,7 +164,7 @@ HttpClient::Headers const & HttpClient::GetHeaders() const
|
||||
// static
|
||||
string HttpClient::NormalizeServerCookies(string && cookies)
|
||||
{
|
||||
istringstream is(cookies);
|
||||
std::istringstream is(cookies);
|
||||
string str, result;
|
||||
|
||||
// Split by ", ". Can have invalid tokens here, expires= can also contain a comma.
|
||||
@@ -195,7 +195,7 @@ string HttpClient::NormalizeServerCookies(string && cookies)
|
||||
|
||||
string DebugPrint(HttpClient const & request)
|
||||
{
|
||||
ostringstream ostr;
|
||||
std::ostringstream ostr;
|
||||
ostr << "HTTP " << request.ErrorCode() << " url [" << request.UrlRequested() << "]";
|
||||
if (request.WasRedirected())
|
||||
ostr << " was redirected to [" << request.UrlReceived() << "]";
|
||||
|
||||
Reference in New Issue
Block a user