Added constructors to trivial struct types used in C++
authorErich Keane <erich.keane@intel.com>
Fri, 22 May 2015 21:04:14 +0000 (14:04 -0700)
committerErich Keane <erich.keane@intel.com>
Wed, 27 May 2015 20:00:58 +0000 (20:00 +0000)
commit35f307de1aa2fb9b28a9314f1b2f6cb449ca8d61
treef93535f9179c2470018152cfc53ebd222fd7d429
parent9aa5736543eb1abc158e45c1cfafe2f8af175a78
Added constructors to trivial struct types used in C++

The C++ stack uses a OCHeaderOption and OCCallbackData
directly and in situations where construction is necessary.

This patch adds a constructor to both (a trival ctor, permitted
by C++11) POD types.  This cleans up the code and prevents
avoidable errors with either.

Change-Id: I744daf3bb091b646e06d23a069bbe7ee048a8e51
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1100
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
resource/csdk/stack/include/octypes.h
resource/csdk/stack/src/oicgroup.c
resource/csdk/stack/test/stacktests.cpp
resource/include/InProcClientWrapper.h
resource/src/InProcClientWrapper.cpp