mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Migrate ignore_result to std::ignore (see issue #3234)
See https://crbug.com/1285085 for background.
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
|
||||
#include "libcef/browser/download_manager_delegate.h"
|
||||
|
||||
#include <tuple>
|
||||
|
||||
#include "include/cef_download_handler.h"
|
||||
#include "libcef/browser/alloy/alloy_browser_host_impl.h"
|
||||
#include "libcef/browser/context.h"
|
||||
@ -12,7 +14,6 @@
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/ignore_result.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/strings/string_util.h"
|
||||
@ -296,7 +297,7 @@ void CefDownloadManagerDelegate::OnDownloadUpdated(DownloadItem* download) {
|
||||
|
||||
handler->OnDownloadUpdated(browser.get(), download_item.get(), callback);
|
||||
|
||||
ignore_result(download_item->Detach(nullptr));
|
||||
std::ignore = download_item->Detach(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
@ -391,7 +392,7 @@ bool CefDownloadManagerDelegate::DetermineDownloadTarget(
|
||||
handler->OnBeforeDownload(browser.get(), download_item.get(),
|
||||
suggested_name.value(), callbackObj);
|
||||
|
||||
ignore_result(download_item->Detach(nullptr));
|
||||
std::ignore = download_item->Detach(nullptr);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user