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,7 +4,7 @@
#include "libcef/common/time_util.h"
#include "base/ignore_result.h"
#include <tuple>
#if BUILDFLAG(IS_WIN)
#include <limits>
@ -33,7 +33,7 @@ void cef_time_to_basetime(const cef_time_t& cef_time, base::Time& time) {
exploded.minute = cef_time.minute;
exploded.second = cef_time.second;
exploded.millisecond = cef_time.millisecond;
ignore_result(base::Time::FromUTCExploded(exploded, &time));
std::ignore = base::Time::FromUTCExploded(exploded, &time);
}
void cef_time_from_basetime(const base::Time& time, cef_time_t& cef_time) {