In set methods, make the argument const
diff --git a/ndn-cpp/Name.cpp b/ndn-cpp/Name.cpp
index f80d1a7..63a0c4f 100644
--- a/ndn-cpp/Name.cpp
+++ b/ndn-cpp/Name.cpp
@@ -236,7 +236,7 @@
     components_[i].get(nameStruct.components[i]);
 }
   
-void Name::set(struct ndn_Name &nameStruct) 
+void Name::set(const struct ndn_Name &nameStruct) 
 {
   clear();
   for (unsigned int i = 0; i < nameStruct.nComponents; ++i)