2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[1627] Rewrite code to use local variables

This commit is contained in:
Mukund Sivaraman
2012-03-30 03:32:37 +05:30
parent 88a80126ce
commit 9d192aa44e

View File

@@ -168,8 +168,7 @@ MemoryDatasourceConfig::build(ConstElementPtr config_value) {
InMemoryZoneFinder* imzf = NULL;
try {
imzf = new InMemoryZoneFinder(rrclass_,
Name(origin->stringValue()));
imzf = new InMemoryZoneFinder(rrclass_, Name(origin_txt));
} catch (const isc::dns::NameParserException& ex) {
isc_throw(AuthConfigError, "unable to parse zone's origin: " <<
ex.what());
@@ -188,7 +187,7 @@ MemoryDatasourceConfig::build(ConstElementPtr config_value) {
* need the load method to be split into some kind of build and
* commit/abort parts.
*/
zone_finder->load(file->stringValue());
zone_finder->load(file_txt);
}
}