[svn] commit: r556 - /branches/parkinglot/src/bin/parkinglot/parkinglot.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Jan 27 01:39:14 UTC 2010
Author: jinmei
Date: Wed Jan 27 01:39:14 2010
New Revision: 556
Log:
simplification by eliminating unnecessary temporary variables.
Modified:
branches/parkinglot/src/bin/parkinglot/parkinglot.cc
Modified: branches/parkinglot/src/bin/parkinglot/parkinglot.cc
==============================================================================
--- branches/parkinglot/src/bin/parkinglot/parkinglot.cc (original)
+++ branches/parkinglot/src/bin/parkinglot/parkinglot.cc Wed Jan 27 01:39:14 2010
@@ -140,9 +140,8 @@
for (RRsetIterator it = msg.beginSection(Section::ANSWER());
it != msg.endSection(Section::ANSWER());
++it) {
- RRsetPtr rrset = (*it);
- if (rrset->getType() == RRType::NS()) {
- RdataIteratorPtr rrsetit = rrset->getRdataIterator();
+ if ((*it)->getType() == RRType::NS()) {
+ RdataIteratorPtr rrsetit = (*it)->getRdataIterator();
for (rrsetit->first();
!rrsetit->isLast();
rrsetit->next()) {
@@ -161,9 +160,8 @@
for (RRsetIterator it = msg.beginSection(Section::ANSWER());
it != msg.endSection(Section::ANSWER());
++it) {
- RRsetPtr rrset = (*it);
- if (rrset->getType() == RRType::NS()) {
- RdataIteratorPtr rrsetit = rrset->getRdataIterator();
+ if ((*it)->getType() == RRType::NS()) {
+ RdataIteratorPtr rrsetit = (*it)->getRdataIterator();
for (rrsetit->first();
!rrsetit->isLast();
rrsetit->next()) {
More information about the bind10-changes
mailing list