From 7332b36c5d5aeef4a57f5701d5fcbf159df3ee33 Mon Sep 17 00:00:00 2001 From: rylek Date: Tue, 5 Aug 2014 15:58:05 +0000 Subject: [PATCH] RefManager fix git-svn-id: svn://ultimatepp.org/upp/trunk@7561 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/TCore/util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uppsrc/TCore/util.h b/uppsrc/TCore/util.h index 08a3bfa89..ce5b18311 100644 --- a/uppsrc/TCore/util.h +++ b/uppsrc/TCore/util.h @@ -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; } };