From db59a3096b4f44aaacabdc5b455fbc0a3a6b8fb1 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 3 Feb 2022 14:23:23 +0100 Subject: Adaptations for Chrome 96 Change-Id: I40039658762b8788a0be57bd186efab71f3e4448 Reviewed-by: Peter Varga --- src/core/chromium_overrides.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/chromium_overrides.cpp') diff --git a/src/core/chromium_overrides.cpp b/src/core/chromium_overrides.cpp index 4be528f58..512b142a0 100644 --- a/src/core/chromium_overrides.cpp +++ b/src/core/chromium_overrides.cpp @@ -112,8 +112,8 @@ std::unique_ptr GetFontList_SlowBlocking() for (auto family : QFontDatabase::families()){ std::unique_ptr font_item(new base::ListValue()); - font_item->AppendString(family.toStdString()); - font_item->AppendString(family.toStdString()); // localized name. + font_item->Append(family.toStdString()); + font_item->Append(family.toStdString()); // localized name. // TODO(yusukes): Support localized family names. font_list->Append(std::move(font_item)); } -- cgit v1.2.1