Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
1f5e971f
Commit
1f5e971f
authored
Aug 05, 2024
by
NameSirius
Committed by
Jesse Beder
Aug 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile warning with -Wshadow
parent
b11eaf16
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
include/yaml-cpp/emitterstyle.h
+2
-2
include/yaml-cpp/node/type.h
+2
-2
src/singledocparser.cpp
+2
-3
No files found.
include/yaml-cpp/emitterstyle.h
View file @
1f5e971f
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
#endif
#endif
namespace
YAML
{
namespace
YAML
{
struct
EmitterStyle
{
namespace
EmitterStyle
{
enum
value
{
Default
,
Block
,
Flow
};
enum
value
{
Default
,
Block
,
Flow
};
};
};
}
}
...
...
include/yaml-cpp/node/type.h
View file @
1f5e971f
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
#endif
#endif
namespace
YAML
{
namespace
YAML
{
struct
NodeType
{
namespace
NodeType
{
enum
value
{
Undefined
,
Null
,
Scalar
,
Sequence
,
Map
};
enum
value
{
Undefined
,
Null
,
Scalar
,
Sequence
,
Map
};
};
};
}
}
...
...
src/singledocparser.cpp
View file @
1f5e971f
#include <algorithm>
#include <cstdio>
#include <cstdio>
#include <sstream>
#include <sstream>
...
@@ -93,8 +92,8 @@ void SingleDocParser::HandleNode(EventHandler& eventHandler) {
...
@@ -93,8 +92,8 @@ void SingleDocParser::HandleNode(EventHandler& eventHandler) {
// add non-specific tags
// add non-specific tags
if
(
tag
.
empty
())
if
(
tag
.
empty
())
tag
=
(
token
.
type
==
Token
::
NON_PLAIN_SCALAR
?
"!"
:
"?"
);
tag
=
(
token
.
type
==
Token
::
NON_PLAIN_SCALAR
?
"!"
:
"?"
);
if
(
token
.
type
==
Token
::
PLAIN_SCALAR
if
(
token
.
type
==
Token
::
PLAIN_SCALAR
&&
tag
.
compare
(
"?"
)
==
0
&&
IsNullString
(
token
.
value
))
{
&&
tag
.
compare
(
"?"
)
==
0
&&
IsNullString
(
token
.
value
))
{
eventHandler
.
OnNull
(
mark
,
anchor
);
eventHandler
.
OnNull
(
mark
,
anchor
);
m_scanner
.
pop
();
m_scanner
.
pop
();
...
...
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