Use const where possible.
diff --git a/ndn-cpp/Name.cpp b/ndn-cpp/Name.cpp
index a5c8ade..f80d1a7 100644
--- a/ndn-cpp/Name.cpp
+++ b/ndn-cpp/Name.cpp
@@ -226,7 +226,7 @@
   }
 }
 
-void Name::get(struct ndn_Name &nameStruct) 
+void Name::get(struct ndn_Name &nameStruct) const
 {
   if (nameStruct.maxComponents < components_.size())
     throw runtime_error("nameStruct.maxComponents must be >= this name getNComponents()");
@@ -243,7 +243,7 @@
     addComponent(nameStruct.components[i].value, nameStruct.components[i].valueLength);  
 }
 
-std::string Name::to_uri()
+std::string Name::to_uri() const
 {
   if (components_.size() == 0)
     return "/";