.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@6525 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-11-03 19:31:21 +00:00
parent f85f060b32
commit 0a36ef18b4

View file

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