Showing the changes to interface/src/scripting/AccountServicesScriptingInterface.cpp (1 of 35 files). Show all
Unified · Split
| @@ -19,11 +19,11 @@ · 18 unmodified lines | ||
| 19 | 19 | #include "DiscoverabilityManager.h" |
| 20 | 20 | #include "ResourceCache.h" |
| 21 | 21 | |
| 22 | −STATIC_SCRIPT_TYPES_INITIALIZER(+[](ScriptManager* manager){ | |
| 22 | +STATIC_SCRIPT_TYPES_INITIALIZER((+[](ScriptManager* manager){ | |
| 23 | 23 | auto scriptEngine = manager->engine().get(); |
| 24 | 24 | |
| 25 | − scriptRegisterMetaType(scriptEngine, DownloadInfoResultToScriptValue, DownloadInfoResultFromScriptValue); | |
| 26 | −}); | |
| 25 | + scriptRegisterMetaType<DownloadInfoResult, DownloadInfoResultToScriptValue, DownloadInfoResultFromScriptValue>(scriptEngine); | |
| 26 | +})); | |
| 27 | 27 | |
| 28 | 28 | AccountServicesScriptingInterface::AccountServicesScriptingInterface() { |
| 29 | 29 | auto accountManager = DependencyManager::get<AccountManager>(); |