commit | 6d59197a1bdfcbcea8a15a99707293549c3a5ebb | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Oct 17 11:16:32 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Oct 17 11:16:32 2013 -0700 |
tree | b34c8f849ff28da36cd9887f2e5a2622c0136d3b | |
parent | a5dc351a4293a688112816fd0cc6344f6d80475e [diff] [blame] |
Data and IdentityCertificate: Make Data::setName virtual so that IdentityCertificate::setName is sure to validate the name.
diff --git a/ndn-cpp/data.cpp b/ndn-cpp/data.cpp index 62cdf3b..a31878e 100644 --- a/ndn-cpp/data.cpp +++ b/ndn-cpp/data.cpp
@@ -93,6 +93,14 @@ onChanged(); } +Data& +Data::setName(const Name& name) +{ + name_ = name; + onChanged(); + return *this; +} + SignedBlob Data::wireEncode(WireFormat& wireFormat) {