Skip to content

Commit b0ad7c4

Browse files
authored
[macOS] Eliminate explicit main window init() (flutter#123571)
[macOS] Eliminate explicit main window init()
1 parent 8f62e34 commit b0ad7c4

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

dev/benchmarks/complex_layout/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FlutterMacOS
77

88
class MainFlutterWindow: NSWindow {
99
override func awakeFromNib() {
10-
let flutterViewController = FlutterViewController.init()
10+
let flutterViewController = FlutterViewController()
1111
let windowFrame = self.frame
1212
self.contentViewController = flutterViewController
1313
self.setFrame(windowFrame, display: true)

dev/benchmarks/macrobenchmarks/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FlutterMacOS
77

88
class MainFlutterWindow: NSWindow {
99
override func awakeFromNib() {
10-
let flutterViewController = FlutterViewController.init()
10+
let flutterViewController = FlutterViewController()
1111
let windowFrame = self.frame
1212
self.contentViewController = flutterViewController
1313
self.setFrame(windowFrame, display: true)

dev/integration_tests/channels/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ExtendedReaderWriter: FlutterStandardReaderWriter {
6060

6161
class MainFlutterWindow: NSWindow {
6262
override func awakeFromNib() {
63-
let flutterViewController = FlutterViewController.init()
63+
let flutterViewController = FlutterViewController()
6464
let windowFrame = self.frame
6565
self.contentViewController = flutterViewController
6666
self.setFrame(windowFrame, display: true)

dev/integration_tests/flavors/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FlutterMacOS
77

88
class MainFlutterWindow: NSWindow {
99
override func awakeFromNib() {
10-
let flutterViewController = FlutterViewController.init()
10+
let flutterViewController = FlutterViewController()
1111
let windowFrame = self.frame
1212
self.contentViewController = flutterViewController
1313
self.setFrame(windowFrame, display: true)

dev/integration_tests/flutter_gallery/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FlutterMacOS
77

88
class MainFlutterWindow: NSWindow {
99
override func awakeFromNib() {
10-
let flutterViewController = FlutterViewController.init()
10+
let flutterViewController = FlutterViewController()
1111
let windowFrame = self.frame
1212
self.contentViewController = flutterViewController
1313
self.setFrame(windowFrame, display: true)

dev/integration_tests/ui/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension NSWindow {
1313

1414
class MainFlutterWindow: NSWindow {
1515
override func awakeFromNib() {
16-
let flutterViewController = FlutterViewController.init()
16+
let flutterViewController = FlutterViewController()
1717
let windowFrame = self.frame
1818
self.contentViewController = flutterViewController
1919
self.setFrame(windowFrame, display: true)

dev/manual_tests/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FlutterMacOS
77

88
class MainFlutterWindow: NSWindow {
99
override func awakeFromNib() {
10-
let flutterViewController = FlutterViewController.init()
10+
let flutterViewController = FlutterViewController()
1111
let windowFrame = self.frame
1212
self.contentViewController = flutterViewController
1313
self.setFrame(windowFrame, display: true)

examples/api/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FlutterMacOS
77

88
class MainFlutterWindow: NSWindow {
99
override func awakeFromNib() {
10-
let flutterViewController = FlutterViewController.init()
10+
let flutterViewController = FlutterViewController()
1111
let windowFrame = self.frame
1212
self.contentViewController = flutterViewController
1313
self.setFrame(windowFrame, display: true)

examples/hello_world/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FlutterMacOS
77

88
class MainFlutterWindow: NSWindow {
99
override func awakeFromNib() {
10-
let flutterViewController = FlutterViewController.init()
10+
let flutterViewController = FlutterViewController()
1111
let windowFrame = self.frame
1212
self.contentViewController = flutterViewController
1313
self.setFrame(windowFrame, display: true)

examples/image_list/macos/Runner/MainFlutterWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FlutterMacOS
77

88
class MainFlutterWindow: NSWindow {
99
override func awakeFromNib() {
10-
let flutterViewController = FlutterViewController.init()
10+
let flutterViewController = FlutterViewController()
1111
let windowFrame = self.frame
1212
self.contentViewController = flutterViewController
1313
self.setFrame(windowFrame, display: true)

0 commit comments

Comments
 (0)