[svn] commit: r1011 - /trunk/src/lib/dns/cpp/rrsetlist.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Feb 26 20:03:18 UTC 2010
Author: jinmei
Date: Fri Feb 26 20:03:18 2010
New Revision: 1011
Log:
findRRset(type/class version): we don't need to extract the bare pointer.
cleaned it up.
Modified:
trunk/src/lib/dns/cpp/rrsetlist.cc
Modified: trunk/src/lib/dns/cpp/rrsetlist.cc
==============================================================================
--- trunk/src/lib/dns/cpp/rrsetlist.cc (original)
+++ trunk/src/lib/dns/cpp/rrsetlist.cc Fri Feb 26 20:03:18 2010
@@ -55,8 +55,8 @@
RRsetList::findRRset(const RRType& rrtype, const RRClass& rrclass)
{
BOOST_FOREACH(const RRsetPtr rrsetptr, rrsets_) {
- const AbstractRRset* rrset = rrsetptr.get();
- if ((rrset->getClass() == rrclass) && (rrset->getType() == rrtype)) {
+ if ((rrsetptr->getClass() == rrclass) &&
+ (rrsetptr->getType() == rrtype)) {
return rrsetptr;
}
}
More information about the bind10-changes
mailing list