File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/request_body_processor Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ NodeData::~NodeData() {};
37
37
/*
38
38
* XMLNodes for parsing XML into args
39
39
*/
40
- XMLNodes::XMLNodes (Transaction *transaction) {
41
- nodes = {};
42
- node_depth = 0 ;
43
- currpath = " " ;
44
- currval = " " ;
45
- m_transaction = transaction;
46
- }
40
+ XMLNodes::XMLNodes (Transaction *transaction)
41
+ : nodes{},
42
+ node_depth ( 0 ),
43
+ currpath( " " ),
44
+ currval( " " ),
45
+ m_transaction( transaction)
46
+ { }
47
47
48
48
XMLNodes::~XMLNodes () {};
49
49
@@ -76,7 +76,7 @@ class MSCSAXHandler {
76
76
void onEndElement (void * ctx, const xmlChar *localname) {
77
77
std::string name = reinterpret_cast <const char *>(localname);
78
78
XMLNodes* xml_data = static_cast <XMLNodes*>(ctx);
79
- std::shared_ptr<NodeData>& nd = xml_data->nodes [xml_data->nodes .size ()-1 ];
79
+ const std::shared_ptr<NodeData>& nd = xml_data->nodes [xml_data->nodes .size ()-1 ];
80
80
if (nd->has_child == true ) {
81
81
// check the return value
82
82
// if it false, then stop parsing
You can’t perform that action at this time.
0 commit comments