From d1e6d6446819036aa70c1d5aac9d5d9034877e1f Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Mon, 27 Mar 2023 17:39:53 -0700 Subject: [PATCH] [macOS] Eliminate explicit main window init() The style guide actively recommends against calling .init(). See: https://google.github.io/swift/#initializers-1 No additional tests since this is purely a style change with no semantic effect. See: https://github.com/flutter/flutter/pull/123571 --- .../darwin/macos/framework/Headers/FlutterViewController.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h b/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h index 62ea527611d0d..eb3c0a0f5984a 100644 --- a/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h +++ b/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h @@ -131,7 +131,7 @@ FLUTTER_DARWIN_EXPORT * * class MainFlutterWindow: NSWindow { * override func awakeFromNib() { - * let flutterViewController = FlutterViewController.init() + * let flutterViewController = FlutterViewController() * * // The background color of the window and `FlutterViewController` * // are retained separately.