Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
d31372d7
Commit
d31372d7
authored
Mar 06, 2012
by
JINMEI Tatuya
Browse files
[1603] added note about default constructor of LabelSequence.
also make sure member variables are initialized explicitly.
parent
2903127d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/labelsequence.h
View file @
d31372d7
...
...
@@ -42,6 +42,16 @@ namespace dns {
///
class
LabelSequence
{
public:
/// \brief The default constructor
///
/// A LabelSequence is expected to be stored in STL containers and
/// has to have a default constructor. A LabelSequence object generated
/// by this constructor is only usable as a placeholder; method calls
/// on such an object can return a bogus value or result in crash.
/// It's caller's responsibility to avoid such invaild usage.
LabelSequence
()
:
name_
(
NULL
),
first_label_
(
0
),
last_label_
(
0
)
{}
/// \brief Constructs a LabelSequence for the given name
///
/// \note The associated Name MUST remain in scope during the lifetime
...
...
Write
Preview
Supports
Markdown
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