From 08579bdcd56eb6b5aa39b190e9df615af185713d Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 19 Sep 2024 09:33:28 -0500 Subject: [PATCH] chore: fix compile issue about ambiguous error of multiple methods named 'highlight'. (#43801) 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 09fa5472b2..2c1db7f947 100644 --- a/shell/browser/ui/message_box_mac.mm +++ b/shell/browser/ui/message_box_mac.mm @@ -84,7 +84,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]; } }