Core: Null Value issue fixed

git-svn-id: svn://ultimatepp.org/upp/trunk@13472 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-07-04 09:43:17 +00:00
parent 370752519e
commit 2ce332257f

View file

@ -279,8 +279,13 @@ int Value::Compare(const Value& v) const
template <class T>
const T& GetStaticNull()
{
static T q;
return q;
static T *q;
ONCELOCK {
static T x;
SetNull(x);
q = &x;
}
return *q;
}
template <class T>