From f1f199b777e32d0ff2a566af6eaa363d391aa18e Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Wed, 13 Jun 2012 16:19:58 -0700 Subject: * Minor C++ fixes * Adding UnknownSlicedObject in Java --- cpp/test/Ice/optional/TestI.cpp | 55 ++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 28 deletions(-) (limited to 'cpp/test/Ice/optional/TestI.cpp') diff --git a/cpp/test/Ice/optional/TestI.cpp b/cpp/test/Ice/optional/TestI.cpp index 4e7251af410..22de9e2cb6e 100644 --- a/cpp/test/Ice/optional/TestI.cpp +++ b/cpp/test/Ice/optional/TestI.cpp @@ -31,10 +31,9 @@ InitialI::pingPong(const ObjectPtr& obj, const Current&) return obj; } - void -InitialI::opOptionalException(const Optional& a, - const Optional& b, +InitialI::opOptionalException(const Optional& a, + const Optional& b, const Optional& o, const Ice::Current&) { @@ -45,86 +44,87 @@ InitialI::opOptionalException(const Optional& a, throw ex; } -Optional -InitialI::opByte(const Optional& p1, Optional& p3, const Current&) +Optional +InitialI::opByte(const Optional& p1, Optional& p3, const Current&) { p3 = p1; return p1; } -Optional +Optional InitialI::opLong(const Optional& p1, Optional& p3, const Current&) { p3 = p1; return p1; } -Optional +Optional InitialI::opString(const Optional& p1, Optional& p3, const Current&) { p3 = p1; return p1; } -Optional +Optional InitialI::opOneOptional(const Optional& p1, Optional& p3, const Current&) { p3 = p1; return p1; } -Optional +Optional InitialI::opOneOptionalProxy(const Optional& p1, Optional& p3, const Current&) { p3 = p1; return p1; } -Optional -InitialI::opByteSeq(const Optional >& p1, Optional& p3, const Current&) +Optional +InitialI::opByteSeq(const Optional >& p1, Optional& p3, + const Current&) { if(p1) { - p3 = ByteSeq(p1->first, p1->second); + p3 = Ice::ByteSeq(p1->first, p1->second); } return p3; } -Optional -InitialI::opShortSeq(const Optional >& p1, Optional& p3, const Current&) +Optional +InitialI::opShortSeq(const Optional >& p1, Optional& p3, const Current&) { if(p1) { - p3 = ShortSeq(p1->first, p1->second); + p3 = Ice::ShortSeq(p1->first, p1->second); } return p3; } -Optional -InitialI::opBoolSeq(const Optional >& p1, Optional& p3, const Current&) +Optional +InitialI::opBoolSeq(const Optional >& p1, Optional& p3, const Current&) { if(p1) { - p3 = BoolSeq(p1->first, p1->second); + p3 = Ice::BoolSeq(p1->first, p1->second); } return p3; } -Optional -InitialI::opStringSeq(const Optional >& p1, - Optional& p3, +Optional +InitialI::opStringSeq(const Optional >& p1, + Optional& p3, const Current&) { if(p1) { - p3 = StringSeq(p1->first, p1->second); + p3 = Ice::StringSeq(p1->first, p1->second); } return p3; } -Optional +Optional InitialI::opFixedStructSeq(const Optional >& p1, - Optional& p3, + Optional& p3, const Current&) { if(p1) @@ -133,10 +133,10 @@ InitialI::opFixedStructSeq(const Optional + +Optional InitialI::opVarStructSeq(const Optional >& p1, - Optional& p3, + Optional& p3, const Current&) { if(p1) @@ -150,4 +150,3 @@ void InitialI::opClassAndUnknownOptional(const APtr& a, const Ice::Current&) { } - -- cgit v1.2.3