| Index: include/AdblockPlus/JsValue.h |
| =================================================================== |
| --- a/include/AdblockPlus/JsValue.h |
| +++ b/include/AdblockPlus/JsValue.h |
| @@ -82,28 +82,28 @@ |
| std::vector<std::string> GetOwnPropertyNames() const; |
| /** |
| * Returns a property value if this is an object (see `IsObject()`). |
| * @param name Property name. |
| * @return Property value, undefined (see `IsUndefined()`) if the property |
| * does not exist. |
| */ |
| - JsValuePtr GetProperty(const std::string& name) const; |
| + JsValue GetProperty(const std::string& name) const; |
| //@{ |
| /** |
| * Sets a property value if this is an object (see `IsObject()`). |
| * @param name Property name. |
| * @param val Property value. |
| */ |
| void SetProperty(const std::string& name, const std::string& val); |
| void SetProperty(const std::string& name, int64_t val); |
| void SetProperty(const std::string& name, bool val); |
| - void SetProperty(const std::string& name, const JsValuePtr& value); |
| + void SetProperty(const std::string& name, const JsValue& value); |
| inline void SetProperty(const std::string& name, const char* val) |
| { |
| SetProperty(name, std::string(val)); |
| } |
| inline void SetProperty(const std::string& name, int val) |
| { |
| SetProperty(name, static_cast<int64_t>(val)); |
| } |