Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
6f38f81f
Commit
6f38f81f
authored
Jan 20, 2015
by
Marcin Siodelski
Browse files
[3668] Fixed the quoteValue method in the DbAccessParser test.
parent
1f4950f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc
View file @
6f38f81f
...
...
@@ -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"
));
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment