From 78ede09ecd67a76da978eaa40495177ba5578019 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 19 Sep 2024 07:20:56 -0500 Subject: [PATCH] chore: fix compile issue about ambiguous error of multiple methods named 'highlight'. (#43800) chore: fix ambiguous error of multiple methods named 'highlight' Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: bill.shen --- shell/browser/ui/message_box_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/ui/message_box_mac.mm b/shell/browser/ui/message_box_mac.mm index 373fab1b544c..07c60847bbfe 100644 --- a/shell/browser/ui/message_box_mac.mm +++ b/shell/browser/ui/message_box_mac.mm @@ -81,7 +81,7 @@ NSAlert* CreateNSAlert(const MessageBoxSettings& settings) { // TODO(@codebytere): This behavior violates HIG & should be deprecated. if (settings.cancel_id == settings.default_id) { - [[ns_buttons objectAtIndex:settings.default_id] highlight:YES]; + [(NSButton*)[ns_buttons objectAtIndex:settings.default_id] highlight:YES]; } }