mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 20:44:39 +03:00
Unexpected object destruction by script engine has been fixed
This commit is contained in:
parent
2500a32023
commit
b3303a7ef6
@ -156,7 +156,7 @@ namespace Const{
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
static inline QJSValue getJSValue(QJSEngine &e, T *p)
|
static inline QJSValue getJSValue(QJSEngine &e, T *p)
|
||||||
{
|
{
|
||||||
QJSValue res = e.newQObject(p);
|
QJSValue res = e.toScriptValue(p);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -156,7 +156,7 @@ namespace Const{
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
static inline QJSValue getJSValue(QJSEngine &e, T *p)
|
static inline QJSValue getJSValue(QJSEngine &e, T *p)
|
||||||
{
|
{
|
||||||
QJSValue res = e.newQObject(p);
|
QJSValue res = e.toScriptValue(p);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user