Migrate ignore_result to std::ignore (see issue #3234)

See https://crbug.com/1285085 for background.
This commit is contained in:
Marshall Greenblatt
2022-01-25 14:40:24 -05:00
parent ebde595370
commit c32f366dfa
12 changed files with 32 additions and 40 deletions

View File

@ -4,6 +4,8 @@
#include "libcef/renderer/render_manager.h"
#include <tuple>
#include "base/compiler_specific.h"
// Enable deprecation warnings on Windows. See http://crbug.com/585142.
@ -28,7 +30,6 @@
#include "libcef/renderer/v8_impl.h"
#include "base/command_line.h"
#include "base/ignore_result.h"
#include "base/strings/string_number_conversions.h"
#include "cef/libcef/common/mojom/cef.mojom.h"
#include "content/public/common/content_switches.h"
@ -353,7 +354,7 @@ CefRefPtr<CefBrowserImpl> CefRenderManager::MaybeCreateBrowser(
}
handler->OnBrowserCreated(browser.get(), dictValuePtr.get());
if (dictValuePtr)
ignore_result(dictValuePtr->Detach(nullptr));
std::ignore = dictValuePtr->Detach(nullptr);
}
}