lyrics: suppress name shadow warnings
This commit is contained in:
@@ -229,20 +229,20 @@ void *Lyrics::Download()
|
|||||||
std::string artist = Curl::escape(itsSong.getArtist());
|
std::string artist = Curl::escape(itsSong.getArtist());
|
||||||
std::string title_ = Curl::escape(itsSong.getTitle());
|
std::string title_ = Curl::escape(itsSong.getTitle());
|
||||||
|
|
||||||
auto fetch_lyrics = [&](auto &fetcher) {
|
auto fetch_lyrics = [&](auto &fetcher_) {
|
||||||
w << "Fetching lyrics from "
|
w << "Fetching lyrics from "
|
||||||
<< NC::Format::Bold
|
<< NC::Format::Bold
|
||||||
<< fetcher->name()
|
<< fetcher_->name()
|
||||||
<< NC::Format::NoBold << "... ";
|
<< NC::Format::NoBold << "... ";
|
||||||
auto result = fetcher->fetch(artist, title_);
|
auto result_ = fetcher_->fetch(artist, title_);
|
||||||
if (result.first == false)
|
if (result_.first == false)
|
||||||
{
|
{
|
||||||
w << NC::Color::Red
|
w << NC::Color::Red
|
||||||
<< result.second
|
<< result_.second
|
||||||
<< NC::Color::End
|
<< NC::Color::End
|
||||||
<< '\n';
|
<< '\n';
|
||||||
}
|
}
|
||||||
return result;
|
return result_;
|
||||||
};
|
};
|
||||||
|
|
||||||
LyricsFetcher::Result result;
|
LyricsFetcher::Result result;
|
||||||
|
|||||||
Reference in New Issue
Block a user