Commit 92295a52 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[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.
parent 54928776
...@@ -693,7 +693,7 @@ public: ...@@ -693,7 +693,7 @@ public:
} }
/// \brief Adds an RRSIG RR to this RRset's signatures /// \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_) { if (!rrsig_) {
rrsig_ = RRsetPtr(new RRset(getName(), getClass(), rrsig_ = RRsetPtr(new RRset(getName(), getClass(),
RRType::RRSIG(), getTTL())); RRType::RRSIG(), getTTL()));
...@@ -702,7 +702,7 @@ public: ...@@ -702,7 +702,7 @@ public:
} }
/// \brief Adds an RRSIG RRset to this RRset /// \brief Adds an RRSIG RRset to this RRset
void addRRsig(AbstractRRset& sigs) { void addRRsig(const AbstractRRset& sigs) {
RdataIteratorPtr it = sigs.getRdataIterator(); RdataIteratorPtr it = sigs.getRdataIterator();
if (!rrsig_) { if (!rrsig_) {
...@@ -715,7 +715,7 @@ public: ...@@ -715,7 +715,7 @@ public:
} }
} }
void addRRsig(RRsetPtr sigs) { addRRsig(*sigs); } void addRRsig(ConstRRsetPtr sigs) { addRRsig(*sigs); }
/// \brief Clear the RRSIGs for this RRset /// \brief Clear the RRSIGs for this RRset
void removeRRsig() { rrsig_ = RRsetPtr(); } void removeRRsig() { rrsig_ = RRsetPtr(); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment