|
@@ -46,7 +46,7 @@ namespace electron::api {
|
|
|
|
|
|
gin::WrapperInfo GlobalShortcut::kWrapperInfo = {gin::kEmbedderNativeGin};
|
|
|
|
|
|
-GlobalShortcut::GlobalShortcut(v8::Isolate* isolate) {}
|
|
|
+GlobalShortcut::GlobalShortcut() {}
|
|
|
|
|
|
GlobalShortcut::~GlobalShortcut() {
|
|
|
UnregisterAll();
|
|
@@ -151,7 +151,7 @@ void GlobalShortcut::UnregisterAll() {
|
|
|
|
|
|
// static
|
|
|
gin::Handle<GlobalShortcut> GlobalShortcut::Create(v8::Isolate* isolate) {
|
|
|
- return gin::CreateHandle(isolate, new GlobalShortcut(isolate));
|
|
|
+ return gin::CreateHandle(isolate, new GlobalShortcut());
|
|
|
}
|
|
|
|
|
|
// static
|