From 855f2193011370f9dac6ebc54af5f7ac12c10ed6 Mon Sep 17 00:00:00 2001 From: BILL SHEN Date: Thu, 19 Sep 2024 19:01:36 +0800 Subject: [PATCH] chore: fix compile issue about ambiguous error of multiple methods named 'highlight'. (#43773) chore: fix ambiguous error of multiple methods named 'highlight' --- 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 373fab1b54..07c60847bb 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]; } }