mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 23:15:20 +00:00
[1627] Rewrite code to use local variables
This commit is contained in:
@@ -168,8 +168,7 @@ MemoryDatasourceConfig::build(ConstElementPtr config_value) {
|
|||||||
|
|
||||||
InMemoryZoneFinder* imzf = NULL;
|
InMemoryZoneFinder* imzf = NULL;
|
||||||
try {
|
try {
|
||||||
imzf = new InMemoryZoneFinder(rrclass_,
|
imzf = new InMemoryZoneFinder(rrclass_, Name(origin_txt));
|
||||||
Name(origin->stringValue()));
|
|
||||||
} catch (const isc::dns::NameParserException& ex) {
|
} catch (const isc::dns::NameParserException& ex) {
|
||||||
isc_throw(AuthConfigError, "unable to parse zone's origin: " <<
|
isc_throw(AuthConfigError, "unable to parse zone's origin: " <<
|
||||||
ex.what());
|
ex.what());
|
||||||
@@ -188,7 +187,7 @@ MemoryDatasourceConfig::build(ConstElementPtr config_value) {
|
|||||||
* need the load method to be split into some kind of build and
|
* need the load method to be split into some kind of build and
|
||||||
* commit/abort parts.
|
* commit/abort parts.
|
||||||
*/
|
*/
|
||||||
zone_finder->load(file->stringValue());
|
zone_finder->load(file_txt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user