lyrics: suppress name shadow warnings

master
Andrzej Rybczak 9 years ago
parent 481ed0b1fe
commit 6a3c49e8e6
  1. 12
      src/lyrics.cpp

@ -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;

Loading…
Cancel
Save