Fixed CPP Conversion of nested array types
authorErich Keane <erich.keane@intel.com>
Tue, 8 Sep 2015 20:21:14 +0000 (13:21 -0700)
committerJon A. Cruz <jonc@osg.samsung.com>
Wed, 9 Sep 2015 05:29:40 +0000 (05:29 +0000)
commitc44137191e8bbea719a7e81f870a7ee34b45b108
tree11f207b1cf5068b68a90acde428c794123eb992e
parentd5393fed6b70d83e96cd31fe48f635fa39018c6c
Fixed CPP Conversion of nested array types

The CPP array type was incorrectly using reserve instead of
resize for the smaller vectors.  This resulted in the index-assignment
of each element to not work properly.  This patch fixes this, so that
the arrays are properly loaded.

Change-Id: I29eb78a1dc69602087ba9861a378f478d611b0f0
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2412
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/src/OCRepresentation.cpp