One more pass by ref.

This commit is contained in:
JoelKatz
2012-05-28 05:35:59 -07:00
parent 574f86bb4d
commit 69d07f3afd
2 changed files with 2 additions and 2 deletions

View File

@@ -363,7 +363,7 @@ void HttpsClient::httpsGet(
client->httpsGet(deqSites, timeout, complete);
}
bool HttpsClient::httpsParseUrl(const std::string strUrl, std::string& strDomain, std::string& strPath)
bool HttpsClient::httpsParseUrl(const std::string& strUrl, std::string& strDomain, std::string& strPath)
{
static boost::regex reUrl("(?i)\\`\\s*https://([^/]+)(/.*)\\s*\\'"); // https://DOMAINPATH

View File

@@ -86,7 +86,7 @@ public:
boost::posix_time::time_duration timeout,
boost::function<void(const boost::system::error_code& ecResult, std::string& strData)> complete);
static bool httpsParseUrl(const std::string strUrl, std::string& strDomain, std::string& strPath);
static bool httpsParseUrl(const std::string& strUrl, std::string& strDomain, std::string& strPath);
};
#endif
// vim:ts=4