From 69d07f3afd2a7fb74762afc8abea399c8956bc55 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 28 May 2012 05:35:59 -0700 Subject: [PATCH] One more pass by ref. --- src/HttpsClient.cpp | 2 +- src/HttpsClient.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HttpsClient.cpp b/src/HttpsClient.cpp index 80f5843080..5b9215cab6 100644 --- a/src/HttpsClient.cpp +++ b/src/HttpsClient.cpp @@ -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 diff --git a/src/HttpsClient.h b/src/HttpsClient.h index 6370065164..930ffeaad3 100644 --- a/src/HttpsClient.h +++ b/src/HttpsClient.h @@ -86,7 +86,7 @@ public: boost::posix_time::time_duration timeout, boost::function 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