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
gaoqiong
yaml-cpp
Commits
1006bee4
Commit
1006bee4
authored
Jan 24, 2015
by
Jesse Beder
Browse files
Default-initialize all sub-iterators in node_iterator_base
parent
899b6614
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
include/yaml-cpp/node/detail/node_iterator.h
include/yaml-cpp/node/detail/node_iterator.h
+10
-3
No files found.
include/yaml-cpp/node/detail/node_iterator.h
View file @
1006bee4
...
...
@@ -63,11 +63,18 @@ class node_iterator_base
typedef
typename
node_iterator_type
<
V
>::
map
MapIter
;
typedef
node_iterator_value
<
V
>
value_type
;
node_iterator_base
()
:
m_type
(
iterator_type
::
None
)
{}
node_iterator_base
()
:
m_type
(
iterator_type
::
None
),
m_seqIt
(),
m_mapIt
(),
m_mapEnd
()
{}
explicit
node_iterator_base
(
SeqIter
seqIt
)
:
m_type
(
iterator_type
::
Sequence
),
m_seqIt
(
seqIt
)
{}
:
m_type
(
iterator_type
::
Sequence
),
m_seqIt
(
seqIt
),
m_mapIt
(),
m_mapEnd
()
{}
explicit
node_iterator_base
(
MapIter
mapIt
,
MapIter
mapEnd
)
:
m_type
(
iterator_type
::
Map
),
m_mapIt
(
mapIt
),
m_mapEnd
(
mapEnd
)
{
:
m_type
(
iterator_type
::
Map
),
m_seqIt
(),
m_mapIt
(
mapIt
),
m_mapEnd
(
mapEnd
)
{
m_mapIt
=
increment_until_defined
(
m_mapIt
);
}
...
...
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