Browse Source

[3668] Fixed the quoteValue method in the DbAccessParser test.

Marcin Siodelski 10 years ago
parent
commit
6f38f81ffc
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc

+ 1 - 3
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"));
     }
 
 };