model: Adding one more way to set Name of Interests and ContentObjects using reference to the Name object
diff --git a/model/ndn-content-object.cc b/model/ndn-content-object.cc
index 91d890d..544d48c 100644
--- a/model/ndn-content-object.cc
+++ b/model/ndn-content-object.cc
@@ -49,11 +49,17 @@
 }
 
 void
-ContentObject::SetName (const Ptr<Name> &name)
+ContentObject::SetName (Ptr<Name> name)
 {
   m_name = name;
 }
 
+void
+ContentObject::SetName (const Name &name)
+{
+  m_name = Create<Name> (name);
+}
+
 const Name&
 ContentObject::GetName () const
 {