diff options
| author | 2009-10-16 22:26:13 +0200 | |
|---|---|---|
| committer | 2009-10-16 22:26:13 +0200 | |
| commit | 32be8ec384bfd78e189d3de6609e50cf4dd072a2 (patch) | |
| tree | ac7edad0f19be2a31efaaaaa3acd477dd2f3c233 /src/Utils.cpp | |
| parent | 8aeef4dd2331445fea8a7a40466b19973e9d09c4 (diff) | |
| download | libplist-32be8ec384bfd78e189d3de6609e50cf4dd072a2.tar.gz libplist-32be8ec384bfd78e189d3de6609e50cf4dd072a2.tar.bz2 | |
Fix Node lifecycle and change argument as reference to const reference.
Diffstat (limited to 'src/Utils.cpp')
| -rw-r--r-- | src/Utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp index a9d2459..4e47994 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp | |||
| @@ -54,7 +54,7 @@ static Structure* FromPlist(plist_t root) | |||
| 54 | return ret; | 54 | return ret; |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | Structure* Utils::FromXml(std::string& in) | 57 | Structure* Utils::FromXml(const std::string& in) |
| 58 | { | 58 | { |
| 59 | plist_t root = NULL; | 59 | plist_t root = NULL; |
| 60 | plist_from_xml(in.c_str(), in.size(), &root); | 60 | plist_from_xml(in.c_str(), in.size(), &root); |
| @@ -62,7 +62,7 @@ Structure* Utils::FromXml(std::string& in) | |||
| 62 | return FromPlist(root); | 62 | return FromPlist(root); |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | Structure* Utils::FromBin(std::vector<char>& in) | 65 | Structure* Utils::FromBin(const std::vector<char>& in) |
| 66 | { | 66 | { |
| 67 | plist_t root = NULL; | 67 | plist_t root = NULL; |
| 68 | plist_from_bin(&in[0], in.size(), &root); | 68 | plist_from_bin(&in[0], in.size(), &root); |
