In set methods, make the argument const
diff --git a/ndn-cpp/Interest.hpp b/ndn-cpp/Interest.hpp
index 2c6ee3e..36e78ca 100644
--- a/ndn-cpp/Interest.hpp
+++ b/ndn-cpp/Interest.hpp
@@ -85,7 +85,7 @@
* Clear this Exclude, and set the entries by copying from the ndn_Exclude struct.
* @param excludeStruct a C ndn_Exclude struct
*/
- void set(struct ndn_Exclude &excludeStruct);
+ void set(const struct ndn_Exclude &excludeStruct);
/**
* Add a new entry of type ndn_Exclude_ANY
@@ -178,7 +178,7 @@
* Clear this interest, and set the values by copying from the interest struct.
* @param interestStruct a C ndn_Interest struct
*/
- void set(struct ndn_Interest &interestStruct);
+ void set(const struct ndn_Interest &interestStruct);
void setMinSuffixComponents(int value) { minSuffixComponents_ = value; }