Use unique_ptr for listBundles API return
authorMarkus Jung <markus.jung@samsung.com>
Tue, 6 Oct 2015 01:31:02 +0000 (10:31 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Tue, 6 Oct 2015 15:38:34 +0000 (15:38 +0000)
commit38b974813a5978dc4ec9a5798d0a7c143b1dc46b
tree43f000931a1012a697efabb3e41e24f08baea854
parent03058818796289586a071769d17188fd7152d243
Use unique_ptr for listBundles API return

listBundles now returns a list with unique_ptr references to RCSBundleInfo objects.
The change clarifies the responsibilty for memory management.

Change-Id: I79f4d70cd6f219f8024b4f2dae548b5ecac606ac
Signed-off-by: Markus Jung <markus.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3551
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/resource-container/examples/ContainerSample.cpp
service/resource-container/include/RCSBundleInfo.h
service/resource-container/include/RCSResourceContainer.h
service/resource-container/src/ResourceContainerImpl.cpp
service/resource-container/src/ResourceContainerImpl.h
service/resource-container/unittests/ResourceContainerTest.cpp