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
16ba5d53
Commit
16ba5d53
authored
Aug 17, 2013
by
Mukund Sivaraman
Browse files
[master] Fix coding style
parent
622e72a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/dhcp_parsers.cc
View file @
16ba5d53
...
...
@@ -42,39 +42,41 @@ const char* ALL_IFACES_KEYWORD = "*";
// *********************** ParserContext *************************
ParserContext
::
ParserContext
(
Option
::
Universe
universe
)
:
boolean_values_
(
new
BooleanStorage
()),
uint32_values_
(
new
Uint32Storage
()),
string_values_
(
new
StringStorage
()),
options_
(
new
OptionStorage
()),
option_defs_
(
new
OptionDefStorage
()),
universe_
(
universe
)
{
}
boolean_values_
(
new
BooleanStorage
()),
uint32_values_
(
new
Uint32Storage
()),
string_values_
(
new
StringStorage
()),
options_
(
new
OptionStorage
()),
option_defs_
(
new
OptionDefStorage
()),
universe_
(
universe
)
{
}
ParserContext
::
ParserContext
(
const
ParserContext
&
rhs
)
:
boolean_values_
(
new
BooleanStorage
(
*
(
rhs
.
boolean_values_
))),
uint32_values_
(
new
Uint32Storage
(
*
(
rhs
.
uint32_values_
))),
string_values_
(
new
StringStorage
(
*
(
rhs
.
string_values_
))),
options_
(
new
OptionStorage
(
*
(
rhs
.
options_
))),
option_defs_
(
new
OptionDefStorage
(
*
(
rhs
.
option_defs_
))),
universe_
(
rhs
.
universe_
)
{
}
boolean_values_
(
new
BooleanStorage
(
*
(
rhs
.
boolean_values_
))),
uint32_values_
(
new
Uint32Storage
(
*
(
rhs
.
uint32_values_
))),
string_values_
(
new
StringStorage
(
*
(
rhs
.
string_values_
))),
options_
(
new
OptionStorage
(
*
(
rhs
.
options_
))),
option_defs_
(
new
OptionDefStorage
(
*
(
rhs
.
option_defs_
))),
universe_
(
rhs
.
universe_
)
{
}
ParserContext
&
ParserContext
::
operator
=
(
const
ParserContext
&
rhs
)
{
if
(
this
!=
&
rhs
)
{
boolean_values_
=
BooleanStoragePtr
(
new
BooleanStorage
(
*
(
rhs
.
boolean_values_
)));
uint32_values_
=
Uint32StoragePtr
(
new
Uint32Storage
(
*
(
rhs
.
uint32_values_
)));
string_values_
=
StringStoragePtr
(
new
StringStorage
(
*
(
rhs
.
string_values_
)));
options_
=
OptionStoragePtr
(
new
OptionStorage
(
*
(
rhs
.
options_
)));
option_defs_
=
OptionDefStoragePtr
(
new
OptionDefStorage
(
*
(
rhs
.
option_defs_
)));
universe_
=
rhs
.
universe_
;
}
return
(
*
this
);
if
(
this
!=
&
rhs
)
{
boolean_values_
=
BooleanStoragePtr
(
new
BooleanStorage
(
*
(
rhs
.
boolean_values_
)));
uint32_values_
=
Uint32StoragePtr
(
new
Uint32Storage
(
*
(
rhs
.
uint32_values_
)));
string_values_
=
StringStoragePtr
(
new
StringStorage
(
*
(
rhs
.
string_values_
)));
options_
=
OptionStoragePtr
(
new
OptionStorage
(
*
(
rhs
.
options_
)));
option_defs_
=
OptionDefStoragePtr
(
new
OptionDefStorage
(
*
(
rhs
.
option_defs_
)));
universe_
=
rhs
.
universe_
;
}
return
(
*
this
);
}
// **************************** DebugParser *************************
...
...
@@ -229,7 +231,7 @@ HooksLibrariesParser::HooksLibrariesParser(const std::string& param_name)
}
}
void
void
HooksLibrariesParser
::
build
(
ConstElementPtr
value
)
{
// Initialize.
libraries_
.
clear
();
...
...
@@ -269,7 +271,7 @@ HooksLibrariesParser::build(ConstElementPtr value) {
changed_
=
true
;
}
void
void
HooksLibrariesParser
::
commit
()
{
/// Commits the list of libraries to the configuration manager storage if
/// the list of libraries has changed.
...
...
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