]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
json.hh: Fix shadowing arg
authorAki Tuomi <cmouse@cmouse.fi>
Sat, 19 Oct 2019 14:44:14 +0000 (17:44 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Tue, 29 Oct 2019 10:01:26 +0000 (12:01 +0200)
json.hh:39:42: warning: declaration of ‘what’ shadows a member of 'this' [-Wshadow]

pdns/json.hh

index 69deb48faf68d7a8ae10fea1b10c6aa9ed937e2f..12cda8eea1af1a01d1f324841d6b517677d00ddb 100644 (file)
@@ -36,6 +36,6 @@ bool boolFromJson(const json11::Json container, const std::string& key, const bo
 class JsonException : public std::runtime_error
 {
 public:
-  JsonException(const std::string& what) : std::runtime_error(what) {
+  JsonException(const std::string& what_arg) : std::runtime_error(what_arg) {
   }
 };