projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
550f4a0
)
Avoid naked ptr in filter configure MP-623
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 14 Aug 2015 18:34:21 +0000
(20:34 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 14 Aug 2015 18:34:21 +0000
(20:34 +0200)
The work was only half done in commit
2beb521c812
.
src/router_flexml.cpp
patch
|
blob
|
history
diff --git
a/src/router_flexml.cpp
b/src/router_flexml.cpp
index
54232de
..
947366a
100644
(file)
--- a/
src/router_flexml.cpp
+++ b/
src/router_flexml.cpp
@@
-203,12
+203,12
@@
void mp::RouterFleXML::Rep::parse_xml_filters1(xmlDocPtr doc,
type_value.c_str(), m_dl_path.c_str());
m_factory->add_creator_dl(type_value, m_dl_path);
}
- mp::filter::Base* filter_base = m_factory->create(type_value);
+ boost::shared_ptr<mp::filter::Base>
+ filter_base(m_factory->create(type_value));
filter_base->configure(node, test_only, file_include_path);
- route.m_list.push_back(
- boost::shared_ptr<mp::filter::Base>(filter_base));
+ route.m_list.push_back(filter_base);
}
}