Commit a129688a authored by Jonathan Beck's avatar Jonathan Beck

Change name of input argument as 'in' is a reserved keyword in python.

parent c1363bea
......@@ -31,8 +31,8 @@ namespace PList
{
public:
static Node* FromPlist(plist_t node, Node* parent = NULL);
static Structure* FromXml(const std::string& in);
static Structure* FromBin(const std::vector<char>& in);
static Structure* FromXml(const std::string& xml);
static Structure* FromBin(const std::vector<char>& bin);
private:
Utils();
......
......@@ -89,18 +89,18 @@ static Structure* ImportStruct(plist_t root)
return ret;
}
Structure* Utils::FromXml(const std::string& in)
Structure* Utils::FromXml(const std::string& xml)
{
plist_t root = NULL;
plist_from_xml(in.c_str(), in.size(), &root);
plist_from_xml(xml.c_str(), xml.size(), &root);
return ImportStruct(root);
}
Structure* Utils::FromBin(const std::vector<char>& in)
Structure* Utils::FromBin(const std::vector<char>& bin)
{
plist_t root = NULL;
plist_from_bin(&in[0], in.size(), &root);
plist_from_bin(&bin[0], bin.size(), &root);
return ImportStruct(root);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment