From: Francis Dupont Date: Wed, 24 Jun 2015 10:53:26 +0000 (+0200) Subject: [3919] moved local variables in their block X-Git-Tag: trac3911_base~5^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=408193e6a47981eaa9d70a9523e6b22270a2bf08;p=thirdparty%2Fkea.git [3919] moved local variables in their block --- diff --git a/src/bin/dhcp6/json_config_parser.cc b/src/bin/dhcp6/json_config_parser.cc index 9c5143fea2..3f3f45a60a 100644 --- a/src/bin/dhcp6/json_config_parser.cc +++ b/src/bin/dhcp6/json_config_parser.cc @@ -194,13 +194,10 @@ public: // Try to obtain the pool parameters. It will throw an exception if any // of the required parameters are not present or invalid. - std::string addr_str; - uint32_t prefix_len; - uint32_t delegated_len; try { - addr_str = string_values_->getParam("prefix"); - prefix_len = uint32_values_->getParam("prefix-len"); - delegated_len = uint32_values_->getParam("delegated-len"); + std::string addr_str = string_values_->getParam("prefix"); + uint32_t prefix_len = uint32_values_->getParam("prefix-len"); + uint32_t delegated_len = uint32_values_->getParam("delegated-len"); // Attempt to construct the local pool. pool_.reset(new Pool6(Lease::TYPE_PD, IOAddress(addr_str),