mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
RefManager fix
git-svn-id: svn://ultimatepp.org/upp/trunk@7561 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3d62911f3e
commit
65f6d6847b
1 changed files with 3 additions and 3 deletions
|
|
@ -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; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue