Bug fix, compile error #6
This commit is contained in:
parent
0e11379e69
commit
e74dca806f
2 changed files with 8 additions and 9 deletions
|
@ -24,11 +24,8 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
|
#include <getopt.h>
|
||||||
|
//---
|
||||||
include <getopt.h>
|
|
||||||
|
|
||||||
|
|
||||||
#include "Cpu.h"
|
#include "Cpu.h"
|
||||||
#include "donate.h"
|
#include "donate.h"
|
||||||
#include "net/Url.h"
|
#include "net/Url.h"
|
||||||
|
|
|
@ -122,17 +122,19 @@ bool Url::parse(const char *url)
|
||||||
|
|
||||||
/*---------------------------------------------------------------------
|
/*---------------------------------------------------------------------
|
||||||
* NAME : bool Url::parseCpp(const char *url)
|
* NAME : bool Url::parseCpp(const char *url)
|
||||||
* SYNOPSIS : Parse url string, C++ version
|
* SYNOPSIS : Parse url string, C++ version will replace parse method in further development.
|
||||||
* DESCRIPTION:
|
* DESCRIPTION: From url input string extract and update m_host_cpp and m_port atributes
|
||||||
*
|
*
|
||||||
---------------------------------------------------------------------*/
|
---------------------------------------------------------------------*/
|
||||||
bool Url::parseCpp(const char *url)
|
bool Url::parseCpp(const char *url)
|
||||||
{
|
{
|
||||||
std::stringstream strStream;
|
std::stringstream strStream;
|
||||||
std::string strURL;
|
std::string strURL;
|
||||||
std::size_t found, il, ir;
|
std::size_t found, il, ir;
|
||||||
//---
|
//---
|
||||||
|
|
||||||
|
il = 0;
|
||||||
|
ir = 0;
|
||||||
strStream << url;
|
strStream << url;
|
||||||
strStream >> strURL;
|
strStream >> strURL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue