summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2015-01-20 10:20:53 +0100
committerMarcin Siodelski <marcin@isc.org>2015-01-20 10:20:53 +0100
commit6f38f81ffc47d8a012d65fdace053f0339e287a1 (patch)
treeaa0350fa47235ad158fd8992c5b91df5eee80dd4 /src
parent[3668] Addressed review comments. (diff)
downloadkea-6f38f81ffc47d8a012d65fdace053f0339e287a1.tar.xz
kea-6f38f81ffc47d8a012d65fdace053f0339e287a1.zip
[3668] Fixed the quoteValue method in the DbAccessParser test.
Diffstat (limited to 'src')
-rw-r--r--src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc b/src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc
index e7a2166a82..24448271e9 100644
--- a/src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc
+++ b/src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc
@@ -184,9 +184,7 @@ private:
///
/// @return true if the value of the parameter should be quoted.
bool quoteValue(const std::string& parameter) const {
- static const char* params[] = { "persist", "lfc-interval" };
- static std::set<std::string> params_set(params, params + sizeof(params));
- return (params_set.find(parameter) == params_set.end());
+ return ((parameter != "persist") && (parameter != "lfc-interval"));
}
};