refactor: NativeWindow::Create()
returns a unique_ptr (#43576)
refactor: NativeWindow::Create() returns a unique_ptr
This commit is contained in:
parent
fe0d4274e2
commit
18b1b33adc
4 changed files with 13 additions and 10 deletions
|
@ -98,8 +98,8 @@ BaseWindow::BaseWindow(v8::Isolate* isolate,
|
|||
}
|
||||
|
||||
// Creates NativeWindow.
|
||||
window_.reset(NativeWindow::Create(
|
||||
options, parent.IsEmpty() ? nullptr : parent->window_.get()));
|
||||
window_ = NativeWindow::Create(
|
||||
options, parent.IsEmpty() ? nullptr : parent->window_.get());
|
||||
window_->AddObserver(this);
|
||||
|
||||
SetContentView(View::Create(isolate));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue