daemon+tests: avoid deprecated ndn-cxx functions
Change-Id: Idfa341629919d63fac140eda0b465f8f8abd38e6
diff --git a/daemon/table/name-tree-hashtable.cpp b/daemon/table/name-tree-hashtable.cpp
index 7d20a34..30e4ca3 100644
--- a/daemon/table/name-tree-hashtable.cpp
+++ b/daemon/table/name-tree-hashtable.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2019, Regents of the University of California,
+ * Copyright (c) 2014-2022, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -64,7 +64,7 @@
HashValue h = 0;
for (size_t i = 0, last = std::min(prefixLen, name.size()); i < last; ++i) {
const name::Component& comp = name[i];
- h ^= HashFunc::compute(comp.wire(), comp.size());
+ h ^= HashFunc::compute(comp.data(), comp.size());
}
return h;
}
@@ -83,7 +83,7 @@
for (size_t i = 0; i < last; ++i) {
const name::Component& comp = name[i];
- h ^= HashFunc::compute(comp.wire(), comp.size());
+ h ^= HashFunc::compute(comp.data(), comp.size());
seq.push_back(h);
}
return seq;