From: Mark Schouten Date: Fri, 6 Jun 2014 13:02:02 +0000 (+0200) Subject: Remove useless use of c_str() X-Git-Tag: rec-3.6.0~10^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1ea40a04fa082427893647db3e06b0df332eeef;p=pdns Remove useless use of c_str() --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 48f6a4e1f..1359ba4e3 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -303,7 +303,7 @@ static void fillZone(const string& zonename, HttpResponse* resp) { doc.AddMember("name", di.zone.c_str(), doc.GetAllocator()); doc.AddMember("type", "Zone", doc.GetAllocator()); doc.AddMember("kind", di.getKindString(), doc.GetAllocator()); - doc.AddMember("dnssec", dk.isSecuredZone(di.zone.c_str()), doc.GetAllocator()); + doc.AddMember("dnssec", dk.isSecuredZone(di.zone), doc.GetAllocator()); string soa_edit_api; di.backend->getDomainMetadataOne(zonename, "SOA-EDIT-API", soa_edit_api); doc.AddMember("soa_edit_api", soa_edit_api.c_str(), doc.GetAllocator()); @@ -688,7 +688,7 @@ static void apiServerZones(HttpRequest* req, HttpResponse* resp) { jdi.AddMember("url", jurl, doc.GetAllocator()); jdi.AddMember("name", di.zone.c_str(), doc.GetAllocator()); jdi.AddMember("kind", di.getKindString(), doc.GetAllocator()); - jdi.AddMember("dnssec", dk.isSecuredZone(di.zone.c_str()), doc.GetAllocator()); + jdi.AddMember("dnssec", dk.isSecuredZone(di.zone), doc.GetAllocator()); Value masters; masters.SetArray(); BOOST_FOREACH(const string& master, di.masters) {