Skip to content

Commit

Permalink
Remove code that removes space before and after strings in the autoge…
Browse files Browse the repository at this point in the history
…nerated

code.

Note, boost::trim has not been removed from ParseDateTime and ParseTime.

Change-Id: I7b13dc8792888d28f65fb045d2970fbe16c3b1f6
Closes-Bug: #1583742
  • Loading branch information
tkarwa committed Sep 22, 2016
1 parent 88162e9 commit b0a9cb4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion ifmap_parser.py
Expand Up @@ -131,7 +131,6 @@ def GenerateDecoder(self, file):
indent = ' ' * 16
if info.sequenceType == 'std::string':
file.write(indent + 'string var(item.child_value());\n')
file.write(indent + 'boost::trim(var);\n')
file.write(indent + 'ptr->%s.push_back(var);\n' %
info.membername)
file.write(indent + 'ptr->property_set_.set(%s);\n' %
Expand Down
2 changes: 0 additions & 2 deletions type_parser.py
Expand Up @@ -32,7 +32,6 @@ def GenerateTypeParser(self, file, ctype):
elif cpptype == 'std::string':
fmt = '%s = node.child_value();\n'
file.write(indent + fmt % member.membername)
file.write(indent + 'boost::trim(%s);\n' % member.membername)
elif cpptype == 'time_t':
if member.xsd_object.getType() == 'xsd:dateTime':
fmt = 'if (!ParseDateTime(node, &%s)) return false;\n'
Expand All @@ -52,7 +51,6 @@ def GenerateTypeParser(self, file, ctype):
elif member.sequenceType == 'std::string':
item = """
string var(node.child_value());
boost::trim(var);
%s.push_back(var);
""" % member.membername
file.write(item)
Expand Down

0 comments on commit b0a9cb4

Please sign in to comment.