refactor: add gin_helper::Dictionary::CreateEmpty() helper (#39547)
This commit is contained in:
parent
9937a2bbe8
commit
09190085c0
29 changed files with 66 additions and 64 deletions
|
@ -27,7 +27,7 @@ bool Converter<file_dialog::Filter>::FromV8(v8::Isolate* isolate,
|
|||
v8::Local<v8::Value> Converter<file_dialog::Filter>::ToV8(
|
||||
v8::Isolate* isolate,
|
||||
const file_dialog::Filter& in) {
|
||||
gin::Dictionary dict = gin::Dictionary::CreateEmpty(isolate);
|
||||
auto dict = gin::Dictionary::CreateEmpty(isolate);
|
||||
|
||||
dict.Set("name", in.first);
|
||||
dict.Set("extensions", in.second);
|
||||
|
@ -58,7 +58,7 @@ bool Converter<file_dialog::DialogSettings>::FromV8(
|
|||
v8::Local<v8::Value> Converter<file_dialog::DialogSettings>::ToV8(
|
||||
v8::Isolate* isolate,
|
||||
const file_dialog::DialogSettings& in) {
|
||||
gin::Dictionary dict = gin::Dictionary::CreateEmpty(isolate);
|
||||
auto dict = gin::Dictionary::CreateEmpty(isolate);
|
||||
|
||||
dict.Set("window",
|
||||
electron::api::BrowserWindow::From(isolate, in.parent_window));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue