Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
8939fad8
Commit
8939fad8
authored
Jun 24, 2015
by
Francis Dupont
Browse files
[3919] Assign typecode_ to avoid cppcheck warning
parent
78af50a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/rrtype.cc
View file @
8939fad8
...
...
@@ -32,10 +32,12 @@ namespace isc {
namespace
dns
{
RRType
::
RRType
(
const
std
::
string
&
type_str
)
{
if
(
!
RRParamRegistry
::
getRegistry
().
textToTypeCode
(
type_str
,
typecode_
))
{
uint16_t
typecode
;
if
(
!
RRParamRegistry
::
getRegistry
().
textToTypeCode
(
type_str
,
typecode
))
{
isc_throw
(
InvalidRRType
,
"Unrecognized RR type string: "
+
type_str
);
}
typecode_
=
typecode
;
}
RRType
::
RRType
(
InputBuffer
&
buffer
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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