Browse Source

chore: fix compile issue about ambiguous error of multiple methods named 'highlight'. (#43773)

chore: fix ambiguous error of multiple methods named 'highlight'
BILL SHEN 7 months ago
parent
commit
855f219301
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shell/browser/ui/message_box_mac.mm

+ 1 - 1
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];
     }
   }