Commit 8a811579 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

cleanup: constify


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1678 e5f2f494-b856-4b98-b285-d166d9295462
parent 16d28db9
......@@ -330,7 +330,7 @@ int
Sqlite3DataSrc::findClosest(const Name& name, unsigned int* position) const {
const unsigned int nlabels = name.getLabelCount();
for (unsigned int i = 0; i < nlabels; ++i) {
Name matchname(name.split(i, nlabels - i));
const Name matchname(name.split(i, nlabels - i));
const int rc = hasExactZone(matchname.toText().c_str());
if (rc >= 0) {
if (position != NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment