Code style: Declare (Type& value) instead of (Type &value)
diff --git a/ndn-cpp/interest.cpp b/ndn-cpp/interest.cpp
index f84dd7a..39e3358 100644
--- a/ndn-cpp/interest.cpp
+++ b/ndn-cpp/interest.cpp
@@ -11,7 +11,7 @@
namespace ndn {
-void Exclude::get(struct ndn_Exclude &excludeStruct) const
+void Exclude::get(struct ndn_Exclude& excludeStruct) const
{
if (excludeStruct.maxEntries < entries_.size())
throw runtime_error("excludeStruct.maxEntries must be >= this exclude getEntryCount()");
@@ -21,7 +21,7 @@
entries_[i].get(excludeStruct.entries[i]);
}
-void Exclude::set(const struct ndn_Exclude &excludeStruct)
+void Exclude::set(const struct ndn_Exclude& excludeStruct)
{
entries_.clear();
for (unsigned int i = 0; i < excludeStruct.nEntries; ++i) {
@@ -55,7 +55,7 @@
return result.str();
}
-void Interest::set(const struct ndn_Interest &interestStruct)
+void Interest::set(const struct ndn_Interest& interestStruct)
{
name_.set(interestStruct.name);
minSuffixComponents_ = interestStruct.minSuffixComponents;
@@ -71,7 +71,7 @@
setVector(nonce_, interestStruct.nonce, interestStruct.nonceLength);
}
-void Interest::get(struct ndn_Interest &interestStruct) const
+void Interest::get(struct ndn_Interest& interestStruct) const
{
name_.get(interestStruct.name);
interestStruct.minSuffixComponents = minSuffixComponents_;