Index: src/AppInfoJsObject.cpp |
=================================================================== |
--- a/src/AppInfoJsObject.cpp |
+++ b/src/AppInfoJsObject.cpp |
@@ -18,18 +18,18 @@ |
#include <AdblockPlus/AppInfo.h> |
#include <AdblockPlus/JsValue.h> |
#include "AppInfoJsObject.h" |
#include "Utils.h" |
using namespace AdblockPlus; |
-JsValuePtr AppInfoJsObject::Setup(const AppInfo& appInfo, const JsValuePtr& obj) |
+JsValue& AppInfoJsObject::Setup(const AppInfo& appInfo, JsValue& obj) |
{ |
- obj->SetProperty("version", appInfo.version); |
- obj->SetProperty("name", appInfo.name); |
- obj->SetProperty("application", appInfo.application); |
- obj->SetProperty("applicationVersion", appInfo.applicationVersion); |
- obj->SetProperty("locale", appInfo.locale); |
- obj->SetProperty("developmentBuild", appInfo.developmentBuild); |
+ obj.SetProperty("version", appInfo.version); |
+ obj.SetProperty("name", appInfo.name); |
+ obj.SetProperty("application", appInfo.application); |
+ obj.SetProperty("applicationVersion", appInfo.applicationVersion); |
+ obj.SetProperty("locale", appInfo.locale); |
+ obj.SetProperty("developmentBuild", appInfo.developmentBuild); |
return obj; |
} |