RefManager fix

git-svn-id: svn://ultimatepp.org/upp/trunk@7561 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2014-08-05 15:58:05 +00:00
parent 3d62911f3e
commit 65f6d6847b

View file

@ -124,10 +124,10 @@ bool FileFlush(FileStream& fstream);
struct BoolRef : public RefManager
{
virtual int GetType() { return UNKNOWN_V; }
virtual Value GetValue(const void *x) { return *(const bool *)x ? 1 : 0; }
virtual int GetType() { return UNKNOWN_V; }
virtual Value GetValue(const void *x) { return *(const bool *)x ? 1 : 0; }
virtual void SetValue(void *x, const Value& v) { *(bool *)x = !UPP::IsNull(v) && (double)v; }
virtual void SetNull(void *x) { *(bool *)x = false; }
virtual void SetNull(void *x) { *(bool *)x = false; }
static RefManager *Manager() { static BoolRef m; return &m; }
};