From 32be8ec384bfd78e189d3de6609e50cf4dd072a2 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Fri, 16 Oct 2009 22:26:13 +0200 Subject: Fix Node lifecycle and change argument as reference to const reference. --- src/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Utils.cpp') 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) return ret; } -Structure* Utils::FromXml(std::string& in) +Structure* Utils::FromXml(const std::string& in) { plist_t root = NULL; plist_from_xml(in.c_str(), in.size(), &root); @@ -62,7 +62,7 @@ Structure* Utils::FromXml(std::string& in) return FromPlist(root); } -Structure* Utils::FromBin(std::vector& in) +Structure* Utils::FromBin(const std::vector& in) { plist_t root = NULL; plist_from_bin(&in[0], in.size(), &root); -- cgit v1.1-32-gdbae