Commit 6f38f81f authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

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

parent 1f4950f5
...@@ -184,9 +184,7 @@ private: ...@@ -184,9 +184,7 @@ private:
/// ///
/// @return true if the value of the parameter should be quoted. /// @return true if the value of the parameter should be quoted.
bool quoteValue(const std::string& parameter) const { bool quoteValue(const std::string& parameter) const {
static const char* params[] = { "persist", "lfc-interval" }; return ((parameter != "persist") && (parameter != "lfc-interval"));
static std::set<std::string> params_set(params, params + sizeof(params));
return (params_set.find(parameter) == params_set.end());
} }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment