From c907ee86cd878fc571f7de96e65ea1fd78dc9d79 Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 29 Mar 2012 09:38:12 +0000 Subject: [PATCH] *Core: Fixed Value::GetCount -now returns 0 if Value !IsArray git-svn-id: svn://ultimatepp.org/upp/trunk@4727 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/Value.cpp b/uppsrc/Core/Value.cpp index 315b0d082..7e284087a 100644 --- a/uppsrc/Core/Value.cpp +++ b/uppsrc/Core/Value.cpp @@ -510,7 +510,7 @@ int Value::GetCount() const if(t == VALUEMAP_V) return ((ValueMap::Data *)ptr())->value.GetCount(); } - return ErrorValue(); + return 0; } const Value& Value::operator[](int i) const