[svn] commit: r1678 - /trunk/src/lib/auth/sqlite3_datasrc.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Apr 6 22:21:48 UTC 2010
Author: jinmei
Date: Tue Apr 6 22:21:48 2010
New Revision: 1678
Log:
cleanup: constify
Modified:
trunk/src/lib/auth/sqlite3_datasrc.cc
Modified: trunk/src/lib/auth/sqlite3_datasrc.cc
==============================================================================
--- trunk/src/lib/auth/sqlite3_datasrc.cc (original)
+++ trunk/src/lib/auth/sqlite3_datasrc.cc Tue Apr 6 22:21:48 2010
@@ -330,7 +330,7 @@
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) {
More information about the bind10-changes
mailing list