summaryrefslogtreecommitdiffstats
path: root/src/lib/datasrc/database.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/datasrc/database.cc')
-rw-r--r--src/lib/datasrc/database.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/datasrc/database.cc b/src/lib/datasrc/database.cc
index 9c85054341..b6a3f3c416 100644
--- a/src/lib/datasrc/database.cc
+++ b/src/lib/datasrc/database.cc
@@ -103,7 +103,7 @@ DatabaseClient::findZone(const Name& name) const {
}
// Then super domains
// Start from 1, as 0 is covered above
- for (size_t i(1); i < name.getLabelCount(); ++i) {
+ for (size_t i = 1; i < name.getLabelCount(); ++i) {
isc::dns::Name superdomain(name.split(i));
zone = accessor_->getZone(superdomain.toText());
if (zone.first) {
@@ -344,7 +344,7 @@ DatabaseClient::Finder::getRRsets(const string& name, const WantedTypes& types,
}
if (!sig_store.empty()) {
// Add signatures to all found RRsets
- for (std::map<RRType, RRsetPtr>::iterator i(result.begin());
+ for (std::map<RRType, RRsetPtr>::iterator i = result.begin();
i != result.end(); ++ i) {
sig_store.appendSignatures(i->second);
}
@@ -646,7 +646,7 @@ DatabaseClient::Finder::findWildcardMatch(
// Strip off the left-more label(s) in the name and replace with a "*".
const Name superdomain(name.split(i));
- const string wildcard("*." + superdomain.toText());
+ const string wildcard(Name("*", 1, &superdomain).toText());
const string construct_name(name.toText());
// TODO Add a check for DNAME, as DNAME wildcards are discouraged (see
@@ -760,7 +760,7 @@ DatabaseClient::Finder::FindDNSSECContext::probe() {
const string origin = finder_.getOrigin().toText();
const FoundRRsets nsec3_found =
finder_.getRRsets(origin, NSEC3PARAM_TYPES(), true);
- const FoundIterator nfi=
+ const FoundIterator nfi =
nsec3_found.second.find(RRType::NSEC3PARAM());
is_nsec3_ = (nfi != nsec3_found.second.end());
@@ -908,7 +908,7 @@ DatabaseClient::Finder::findOnNameResult(const Name& name,
if (any) {
// An ANY query, copy everything to the target instead of returning
// directly.
- for (FoundIterator it(found.second.begin());
+ for (FoundIterator it = found.second.begin();
it != found.second.end(); ++it) {
if (it->second) {
// Skip over the empty ANY
@@ -1110,7 +1110,7 @@ DatabaseClient::Finder::findNSEC3(const Name& name, bool recursive) {
// We keep stripping the leftmost label until we find something.
// In case it is recursive, we'll exit the loop at the first iteration.
- for (unsigned labels(qlabels); labels >= olabels; -- labels) {
+ for (unsigned labels = qlabels; labels >= olabels; --labels) {
const string hash(calculator->calculate(labels == qlabels ? name :
name.split(qlabels - labels,
labels)));