summaryrefslogtreecommitdiff
path: root/implementation/configuration/src
diff options
context:
space:
mode:
authorLutz Bichler <Lutz.Bichler@bmw.de>2014-07-02 12:27:54 +0200
committerLutz Bichler <Lutz.Bichler@bmw.de>2014-07-02 12:27:54 +0200
commitefc3690ab88a58cf91a096522c92d2de63016ab7 (patch)
treefecb400ec96c328c81649f8cbaa32e5bc57b739c /implementation/configuration/src
parent472edd9b4fc6fb92ab6b73af5523a0c8acfa0139 (diff)
downloadvSomeIP-efc3690ab88a58cf91a096522c92d2de63016ab7.tar.gz
Improve usage of shared pointers.
Diffstat (limited to 'implementation/configuration/src')
-rw-r--r--implementation/configuration/src/configuration_impl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/implementation/configuration/src/configuration_impl.cpp b/implementation/configuration/src/configuration_impl.cpp
index b9e58ce..2abad15 100644
--- a/implementation/configuration/src/configuration_impl.cpp
+++ b/implementation/configuration/src/configuration_impl.cpp
@@ -171,7 +171,7 @@ bool configuration_impl::get_services_configuration(boost::property_tree::ptree
bool configuration_impl::get_servicegroup_configuration(const boost::property_tree::ptree &_tree) {
bool is_loaded(true);
try {
- boost::shared_ptr< servicegroup > its_servicegroup(new servicegroup);
+ std::shared_ptr< servicegroup > its_servicegroup(std::make_shared< servicegroup >());
its_servicegroup->address_ = "local"; // Default
for (auto i = _tree.begin(); i != _tree.end(); ++i) {
std::string its_key(i->first);
@@ -193,7 +193,7 @@ bool configuration_impl::get_servicegroup_configuration(const boost::property_tr
return is_loaded;
}
-bool configuration_impl::get_delays_configuration(boost::shared_ptr< servicegroup > &_group, const boost::property_tree::ptree &_tree) {
+bool configuration_impl::get_delays_configuration(std::shared_ptr< servicegroup > &_group, const boost::property_tree::ptree &_tree) {
bool is_loaded(true);
try {
std::stringstream its_converter;
@@ -230,10 +230,10 @@ bool configuration_impl::get_delays_configuration(boost::shared_ptr< servicegrou
return is_loaded;
}
-bool configuration_impl::get_service_configuration(boost::shared_ptr< servicegroup > &_group, const boost::property_tree::ptree &_tree) {
+bool configuration_impl::get_service_configuration(std::shared_ptr< servicegroup > &_group, const boost::property_tree::ptree &_tree) {
bool is_loaded(true);
try {
- boost::shared_ptr< service > its_service(new service);
+ std::shared_ptr< service > its_service(std::make_shared< service >());
its_service->group_ = _group;
for (auto i = _tree.begin(); i != _tree.end(); ++i) {