optimized header dependencies to lower build time

This commit is contained in:
Arvid Norberg
2009-11-23 08:38:50 +00:00
parent 562e2512b9
commit 6343fe6a6d
80 changed files with 783 additions and 290 deletions

View File

@@ -470,11 +470,11 @@ namespace libtorrent
return ret;
}
boost::optional<std::string> url_has_argument(
std::string url_has_argument(
std::string const& url, std::string argument)
{
size_t i = url.find('?');
if (i == std::string::npos) return boost::optional<std::string>();
if (i == std::string::npos) return std::string();
++i;
argument += '=';
@@ -486,7 +486,7 @@ namespace libtorrent
}
argument.insert(0, "&");
i = url.find(argument, i);
if (i == std::string::npos) return boost::optional<std::string>();
if (i == std::string::npos) return std::string();
size_t pos = i + argument.size();
return url.substr(pos, url.find('&', pos) - pos);
}