Browse Source

[2165] Rename variables

Mukund Sivaraman 12 years ago
parent
commit
3afbf54cd0
3 changed files with 15 additions and 15 deletions
  1. 2 2
      src/bin/auth/tests/query_unittest.cc
  2. 4 4
      src/lib/datasrc/memory_datasrc.cc
  3. 9 9
      src/lib/datasrc/zone.h

+ 2 - 2
src/bin/auth/tests/query_unittest.cc

@@ -485,10 +485,10 @@ protected:
                                        isc::dns::ConstRRsetPtr rrset,
                                        FindResultFlags flags = RESULT_DEFAULT)
     {
-        ConstRRsetPtr rr = stripRRsigs(rrset, options);
+        ConstRRsetPtr rp = stripRRsigs(rrset, options);
         return (ZoneFinderContextPtr(
                     new Context(*this, options,
-                                ResultContext(code, rr, flags))));
+                                ResultContext(code, rp, flags))));
     }
 
 private:

+ 4 - 4
src/lib/datasrc/memory_datasrc.cc

@@ -854,13 +854,13 @@ private:
                     // in case the caller has the same RRset but as a result
                     // of normal find() and needs to know they are of the same
                     // kind; otherwise we simply use the stored RBNodeRRset.
-                    ConstRRsetPtr rr;
+                    ConstRRsetPtr rp;
                     if (wild_expanded) {
-                        rr = found->second->getUnderlyingRRset();
+                        rp = found->second->getUnderlyingRRset();
                     } else {
-                        rr = found->second;
+                        rp = found->second;
                     }
-                    result.push_back(ZoneFinder::stripRRsigs(rr, options));
+                    result.push_back(ZoneFinder::stripRRsigs(rp, options));
                 }
             }
         }

+ 9 - 9
src/lib/datasrc/zone.h

@@ -137,17 +137,17 @@ public:
     /// \brief A helper function to strip RRSIGs when FIND_DNSSEC is not
     /// requested.
     static isc::dns::ConstRRsetPtr
-    stripRRsigs(isc::dns::ConstRRsetPtr rr, const FindOptions options) {
-        if (rr) {
-            isc::dns::ConstRRsetPtr sig_rrset = rr->getRRsig();
+    stripRRsigs(isc::dns::ConstRRsetPtr rp, const FindOptions options) {
+        if (rp) {
+            isc::dns::ConstRRsetPtr sig_rrset = rp->getRRsig();
             if (sig_rrset &&
                 ((options & ZoneFinder::FIND_DNSSEC) == 0)) {
                 isc::dns::RRsetPtr result_base
-                    (new isc::dns::RRset(rr->getName(),
-                                         rr->getClass(),
-                                         rr->getType(),
-                                         rr->getTTL()));
-                for (isc::dns::RdataIteratorPtr i(rr->getRdataIterator());
+                    (new isc::dns::RRset(rp->getName(),
+                                         rp->getClass(),
+                                         rp->getType(),
+                                         rp->getTTL()));
+                for (isc::dns::RdataIteratorPtr i(rp->getRdataIterator());
                      !i->isLast();
                      i->next()) {
                     result_base->addRdata(i->getCurrent());
@@ -157,7 +157,7 @@ public:
             }
         }
 
-        return (rr);
+        return (rp);
     }
 
     /// \brief Context of the result of a find() call.