Merge pull request #2484 from bykoianko/master-ref-android-fix

[new downloader] SearchInDownloader bugfix with passing by ref.
This commit is contained in:
Alexander Marchuk 2016-03-24 14:46:52 +03:00
commit 8bae98937e

View file

@ -1096,7 +1096,7 @@ bool Framework::SearchInDownloader(DownloaderSearchParams const & params)
searchParam.SetMode(search::Mode::World);
searchParam.SetSuggestsEnabled(false);
searchParam.SetForceSearch(true);
searchParam.m_onResults = [this, &params](search::Results const & results)
searchParam.m_onResults = [this, params](search::Results const & results)
{
DownloaderSearchResults downloaderSearchResults;
for (auto it = results.Begin(); it != results.End(); ++it)