Bug fix, compile error #6

This commit is contained in:
avujic 2018-03-28 09:01:21 +02:00
parent 0e11379e69
commit e74dca806f
2 changed files with 8 additions and 9 deletions

View file

@ -24,11 +24,8 @@
#include <string.h>
#include <uv.h>
include <getopt.h>
#include <getopt.h>
//---
#include "Cpu.h"
#include "donate.h"
#include "net/Url.h"

View file

@ -122,17 +122,19 @@ bool Url::parse(const char *url)
/*---------------------------------------------------------------------
* NAME : bool Url::parseCpp(const char *url)
* SYNOPSIS : Parse url string, C++ version
* DESCRIPTION:
* SYNOPSIS : Parse url string, C++ version will replace parse method in further development.
* DESCRIPTION: From url input string extract and update m_host_cpp and m_port atributes
*
---------------------------------------------------------------------*/
bool Url::parseCpp(const char *url)
{
std::stringstream strStream;
std::string strURL;
std::size_t found, il, ir;
std::string strURL;
std::size_t found, il, ir;
//---
il = 0;
ir = 0;
strStream << url;
strStream >> strURL;