Parcourir la source

[1614] constify some of RRSIG related interface of RRset.
this is not absolutely necessary for the purpose of this branch, but
it will help make it less ugly.

JINMEI Tatuya il y a 13 ans
Parent
commit
92295a5242
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      src/lib/dns/rrset.h

+ 3 - 3
src/lib/dns/rrset.h

@@ -693,7 +693,7 @@ public:
     }
 
     /// \brief Adds an RRSIG RR to this RRset's signatures
-    virtual void addRRsig(const rdata::RdataPtr rdata) {
+    virtual void addRRsig(const rdata::ConstRdataPtr rdata) {
         if (!rrsig_) {
             rrsig_ = RRsetPtr(new RRset(getName(), getClass(),
                                         RRType::RRSIG(), getTTL()));
@@ -702,7 +702,7 @@ public:
     }
 
     /// \brief Adds an RRSIG RRset to this RRset
-    void addRRsig(AbstractRRset& sigs) {
+    void addRRsig(const AbstractRRset& sigs) {
         RdataIteratorPtr it = sigs.getRdataIterator();
 
         if (!rrsig_) {
@@ -715,7 +715,7 @@ public:
         }
     }
 
-    void addRRsig(RRsetPtr sigs) { addRRsig(*sigs); }
+    void addRRsig(ConstRRsetPtr sigs) { addRRsig(*sigs); }
 
     /// \brief Clear the RRSIGs for this RRset
     void removeRRsig() { rrsig_ = RRsetPtr(); }