commit | 67515bd312b1b546830ea93144c40e98e569c3b7 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Aug 15 17:43:22 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Aug 15 17:43:22 2013 -0700 |
tree | 52764985f0e5f4245ba9deb376e7e3eb46053383 | |
parent | ed4f373366cff052ab06740b05d25126d8f78934 [diff] [blame] |
Added set(const char *uri)
diff --git a/ndn-cpp/name.cpp b/ndn-cpp/name.cpp index 92d5234..8f8a161 100644 --- a/ndn-cpp/name.cpp +++ b/ndn-cpp/name.cpp
@@ -190,8 +190,10 @@ reverse(value_.begin() + 1, value_.end()); } -Name::Name(const char *uri_cstr) +void Name::set(const char *uri_cstr) { + components_.clear(); + string uri = uri_cstr; trim(uri); if (uri.size() == 0)