]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3668] Fixed the quoteValue method in the DbAccessParser test.
authorMarcin Siodelski <marcin@isc.org>
Tue, 20 Jan 2015 09:20:53 +0000 (10:20 +0100)
committerMarcin Siodelski <marcin@isc.org>
Tue, 20 Jan 2015 09:20:53 +0000 (10:20 +0100)
src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc

index e7a2166a823a8fd039d7cb97827168f43a0504cf..24448271e9e7025785af9c0eb641e730fc321ece 100644 (file)
@@ -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"));
     }
 
 };