From 57a085b52a22fd136af1e1b2ed8d4e3bd9a4ff73 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 18 Jun 2011 09:31:24 +0000 Subject: [PATCH] CtrlCore: bool support to Ref git-svn-id: svn://ultimatepp.org/upp/trunk@3545 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Value.cpp | 3 +-- uppsrc/Core/Value.h | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/uppsrc/Core/Value.cpp b/uppsrc/Core/Value.cpp index abe87f554..314d658fc 100644 --- a/uppsrc/Core/Value.cpp +++ b/uppsrc/Core/Value.cpp @@ -237,15 +237,14 @@ struct Ref::ValueRef : public RefManager { virtual void SetNull(void *ptr) { *(Value *) ptr = Null; } }; - Ref::Ref(String& s) { ptr = &s; m = &Single< RichRef >(); } Ref::Ref(WString& s) { ptr = &s; m = &Single< RichRef >(); } Ref::Ref(int& i) { ptr = &i; m = &Single< RichRef >(); } Ref::Ref(int64& i) { ptr = &i; m = &Single< RichRef >(); } Ref::Ref(double& d) { ptr = &d; m = &Single< RichRef >(); } +Ref::Ref(bool& b) { ptr = &b; m = &Single< RichRef >(); } Ref::Ref(Date& d) { ptr = &d; m = &Single< RichRef >(); } Ref::Ref(Time& t) { ptr = &t; m = &Single< RichRef