]> granicus.if.org Git - pdns/commitdiff
Use C++ style cast
authorAki Tuomi <cmouse@desteem.org>
Tue, 29 Sep 2015 17:41:02 +0000 (20:41 +0300)
committerAki Tuomi <cmouse@desteem.org>
Sat, 3 Oct 2015 21:52:44 +0000 (00:52 +0300)
pdns/dbdnsseckeeper.cc
pdns/dnssecsigner.cc

index 1f69673a5ee89bbea73fd66b0492514d39cfe50c..1ea6e6172f213b745f11697e307d5e7501b7aff1 100644 (file)
@@ -450,7 +450,7 @@ bool DNSSECKeeper::getPreRRSIGs(UeberBackend& db, const DNSName& signer, const D
                         // cerr<<"Got it"<<endl;
                         if (wildcardname.countLabels())
                                 rr.qname = qname;
-                        rr.d_place = (DNSResourceRecord::Place)signPlace;
+                        rr.d_place = static_cast<DNSResourceRecord::Place>(signPlace);
                         rr.ttl = signTTL;
                         rrsigs.push_back(rr);
                 }
index 1ca603106ba45c7a98e58aaf62b044e18050bf02..50398e69244cafda0b5a280bfb277188bc000850 100644 (file)
@@ -117,7 +117,7 @@ void addSignature(DNSSECKeeper& dk, UeberBackend& db, const DNSName& signer, con
     else
       rr.ttl=signTTL;
     rr.auth=false;
-    rr.d_place = (DNSResourceRecord::Place) signPlace;
+    rr.d_place = static_cast<DNSResourceRecord::Place> (signPlace);
     BOOST_FOREACH(RRSIGRecordContent& rrc, rrcs) {
       rr.content = rrc.getZoneRepresentation();
       outsigned.push_back(rr);
@@ -230,7 +230,7 @@ void addRRSigs(DNSSECKeeper& dk, UeberBackend& db, const set<DNSName>& authSet,
     else
       signTTL = pos->ttl;
     origTTL = pos->ttl;
-    signPlace = (DNSPacketWriter::Place) pos->d_place;
+    signPlace = static_cast<DNSPacketWriter::Place>(pos->d_place);
     if(pos->auth || pos->qtype.getCode() == QType::DS) {
       string content = pos->content;
       if(!pos->content.empty() && pos->qtype.getCode()==QType::TXT && pos->content[0]!='"') {