mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Refactoring
This commit is contained in:
@ -70,6 +70,16 @@ namespace NSJSBase {
|
||||
{
|
||||
}
|
||||
|
||||
void CJSObject::set(const char* name, JSSmart<CJSValue> value)
|
||||
{
|
||||
this->set(name, value.GetPointer());
|
||||
}
|
||||
void CJSObject::set(const char* name, JSSmart<CJSObject> obj)
|
||||
{
|
||||
JSSmart<CJSValue> value = obj->toValue();
|
||||
this->set(name, value.GetPointer());
|
||||
}
|
||||
|
||||
CJSArray::CJSArray()
|
||||
{
|
||||
}
|
||||
|
||||
@ -229,6 +229,9 @@ namespace NSJSBase
|
||||
virtual void set(const char* name, CJSValue* value) = 0;
|
||||
virtual void set(const char* name, const int& value) = 0;
|
||||
virtual void set(const char* name, const double& value) = 0;
|
||||
// Common funcs
|
||||
void set(const char* name, JSSmart<CJSValue> value);
|
||||
void set(const char* name, JSSmart<CJSObject> value);
|
||||
/**
|
||||
* Returns a pointer to the native embedded object.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user