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
06c3d1db
Commit
06c3d1db
authored
Aug 06, 2024
by
NameSirius
Committed by
Jesse Beder
Aug 06, 2024
Browse files
fix compile warning(Pull requests #1305)(Issues #1306)
parent
04dddd69
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
include/yaml-cpp/emitterstyle.h
include/yaml-cpp/emitterstyle.h
+4
-3
include/yaml-cpp/node/type.h
include/yaml-cpp/node/type.h
+4
-3
src/singledocparser.cpp
src/singledocparser.cpp
+2
-3
No files found.
include/yaml-cpp/emitterstyle.h
View file @
06c3d1db
...
@@ -8,9 +8,10 @@
...
@@ -8,9 +8,10 @@
#endif
#endif
namespace
YAML
{
namespace
YAML
{
struct
EmitterStyle
{
namespace
EmitterStyle
{
enum
value
{
Default
,
Block
,
Flow
};
enum
value
{
Default
,
Block
,
Flow
};
};
}
}
}
#endif // EMITTERSTYLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#endif // EMITTERSTYLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/yaml-cpp/node/type.h
View file @
06c3d1db
...
@@ -8,9 +8,10 @@
...
@@ -8,9 +8,10 @@
#endif
#endif
namespace
YAML
{
namespace
YAML
{
struct
NodeType
{
namespace
NodeType
{
enum
value
{
Undefined
,
Null
,
Scalar
,
Sequence
,
Map
};
enum
value
{
Undefined
,
Null
,
Scalar
,
Sequence
,
Map
};
};
}
}
}
#endif // VALUE_TYPE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#endif // VALUE_TYPE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
src/singledocparser.cpp
View file @
06c3d1db
#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