[svn] commit: r1029 - /trunk/src/lib/dns/cpp/rrsetlist.h
BIND 10 source code commits
bind10-changes at lists.isc.org
Sat Feb 27 08:07:10 UTC 2010
Author: jinmei
Date: Sat Feb 27 08:07:10 2010
New Revision: 1029
Log:
pass by reference, not an object, to avoid unnecessary copy
Modified:
trunk/src/lib/dns/cpp/rrsetlist.h
Modified: trunk/src/lib/dns/cpp/rrsetlist.h
==============================================================================
--- trunk/src/lib/dns/cpp/rrsetlist.h (original)
+++ trunk/src/lib/dns/cpp/rrsetlist.h Sat Feb 27 08:07:10 2010
@@ -82,7 +82,7 @@
const RRClass& rrclass = RRClass::IN());
RRsetPtr findRRset(ConstRRsetPtr rrsetptr);
- RRsetPtr operator[](RRType t) { return (this->findRRset(t)); }
+ RRsetPtr operator[](const RRType& t) { return (this->findRRset(t)); }
typedef RRsetListIterator<std::vector<RRsetPtr>::iterator,
RRsetPtr*,
More information about the bind10-changes
mailing list