lyrics fetcher: fix shadow warnings

This commit is contained in:
Andrzej Rybczak
2013-07-09 00:51:26 +02:00
parent d8a838a3f7
commit 54d11a464c
2 changed files with 6 additions and 6 deletions

View File

@@ -53,7 +53,7 @@ LyricsFetcher::Result LyricsFetcher::fetch(const std::string &artist, const std:
Result result;
result.first = false;
std::string url = this->url();
std::string url = urlTemplate();
boost::replace_all(url, "%artist%", artist.c_str());
boost::replace_all(url, "%title%", title.c_str());
@@ -91,10 +91,10 @@ LyricsFetcher::Result LyricsFetcher::fetch(const std::string &artist, const std:
return result;
}
std::vector<std::string> LyricsFetcher::getContent(const char *regex, const std::string &data)
std::vector<std::string> LyricsFetcher::getContent(const char *regex_, const std::string &data)
{
std::vector<std::string> result;
boost::regex rx(regex);
boost::regex rx(regex_);
auto first = boost::sregex_iterator(data.begin(), data.end(), rx);
auto last = boost::sregex_iterator();
for (; first != last; ++first)