From: Bert Hubert Date: Mon, 3 Dec 2012 21:04:59 +0000 (+0000) Subject: const goodness X-Git-Tag: auth-3.2-rc2~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68821d55d9ce0e4d1e9b316cfeae67d261c702df;p=pdns const goodness git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2961 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/json.cc b/pdns/json.cc index 0645d118f..5d52d8562 100644 --- a/pdns/json.cc +++ b/pdns/json.cc @@ -12,7 +12,7 @@ using namespace rapidjson; -string makeStringFromDocument(Document& doc) +string makeStringFromDocument(const Document& doc) { StringBuffer output; Writer w(output); diff --git a/pdns/json.hh b/pdns/json.hh index 8d0bb4dd0..dd61ed74f 100644 --- a/pdns/json.hh +++ b/pdns/json.hh @@ -23,4 +23,4 @@ std::string returnJSONObject(const std::map& items); std::string makeLogGrepJSON(std::map& varmap, const std::string& fname, const std::string& prefix=""); -std::string makeStringFromDocument(rapidjson::Document& doc); +std::string makeStringFromDocument(const rapidjson::Document& doc);