diff --git a/src/Options.cpp b/src/Options.cpp index c8fe460e..a3239ad0 100644 --- a/src/Options.cpp +++ b/src/Options.cpp @@ -24,11 +24,8 @@ #include #include - - -include - - +#include +//--- #include "Cpu.h" #include "donate.h" #include "net/Url.h" diff --git a/src/net/Url.cpp b/src/net/Url.cpp index d423e9cc..56518d29 100644 --- a/src/net/Url.cpp +++ b/src/net/Url.cpp @@ -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;