THRIFT-1518. cpp: Generated C++ code only sends the first optional field in the write...
authorBryan Duxbury <bryanduxbury@apache.org>
Wed, 22 Feb 2012 21:14:10 +0000 (21:14 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Wed, 22 Feb 2012 21:14:10 +0000 (21:14 +0000)
commitb2507dbb0c9869acb8ff7fab6d3cd5b415a7c6ec
treef44a757167d830fd356f671f40b04ee5cba32d42
parentefa2fcf32566728b7e0cad8011952fae77eca9a0
THRIFT-1518. cpp: Generated C++ code only sends the first optional field in the write() function for a struct

There was some incorrect else if logic added to the CPP generated code, which this patch replaces with the proper functionality.

Patch: Thomas Wiggins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1292508 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_cpp_generator.cc