From 782a62f8752d5220f4fefc20e596f4ba332b2f00 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 9 Jan 2015 13:23:36 +0000 Subject: [PATCH] Core/Rpc: rpc++ now returns Null when no more values available git-svn-id: svn://ultimatepp.org/upp/trunk@8025 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Rpc/Rpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/Rpc/Rpc.h b/uppsrc/Core/Rpc/Rpc.h index d61b050df..a6541968b 100644 --- a/uppsrc/Core/Rpc/Rpc.h +++ b/uppsrc/Core/Rpc/Rpc.h @@ -214,7 +214,7 @@ struct RpcData { int GetRemainingCount() const { return in.GetCount() - ii; } - Value Get() { if(ii >= in.GetCount()) throw ValueTypeMismatch(); return in[ii++]; } + Value Get() { if(ii >= in.GetCount()) return Value(); return in[ii++]; } template RpcData& operator>>(T& x) { ValueGet(x, Get()); return *this; }