mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Null Value issue fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@13472 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
370752519e
commit
2ce332257f
1 changed files with 7 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue