model: Adding one more way to set Name of Interests and ContentObjects using reference to the Name object
diff --git a/model/ndn-interest.cc b/model/ndn-interest.cc
index fb7e449..fc5b24f 100644
--- a/model/ndn-interest.cc
+++ b/model/ndn-interest.cc
@@ -76,6 +76,12 @@
   m_name = name;
 }
 
+void
+Interest::SetName (const Name &name)
+{
+  m_name = Create<Name> (name);
+}
+
 const Name&
 Interest::GetName () const
 {