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
3757b202
Commit
3757b202
authored
Dec 13, 2016
by
Raul Tambre
Committed by
Jesse Beder
Dec 13, 2016
Browse files
Fix compiler warnings in MSVC, #448 (#453)
parent
147d909f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/emitterutils.cpp
src/emitterutils.cpp
+2
-2
src/emitterutils.h
src/emitterutils.h
+2
-2
No files found.
src/emitterutils.cpp
View file @
3757b202
...
...
@@ -354,7 +354,7 @@ bool WriteDoubleQuotedString(ostream_wrapper& out, const std::string& str,
}
bool
WriteLiteralString
(
ostream_wrapper
&
out
,
const
std
::
string
&
str
,
in
t
indent
)
{
std
::
size_
t
indent
)
{
out
<<
"|
\n
"
;
out
<<
IndentTo
(
indent
);
int
codePoint
;
...
...
@@ -393,7 +393,7 @@ bool WriteChar(ostream_wrapper& out, char ch) {
}
bool
WriteComment
(
ostream_wrapper
&
out
,
const
std
::
string
&
str
,
in
t
postCommentIndent
)
{
std
::
size_
t
postCommentIndent
)
{
const
std
::
size_t
curIndent
=
out
.
col
();
out
<<
"#"
<<
Indentation
(
postCommentIndent
);
out
.
set_comment
();
...
...
src/emitterutils.h
View file @
3757b202
...
...
@@ -34,10 +34,10 @@ bool WriteSingleQuotedString(ostream_wrapper& out, const std::string& str);
bool
WriteDoubleQuotedString
(
ostream_wrapper
&
out
,
const
std
::
string
&
str
,
bool
escapeNonAscii
);
bool
WriteLiteralString
(
ostream_wrapper
&
out
,
const
std
::
string
&
str
,
in
t
indent
);
std
::
size_
t
indent
);
bool
WriteChar
(
ostream_wrapper
&
out
,
char
ch
);
bool
WriteComment
(
ostream_wrapper
&
out
,
const
std
::
string
&
str
,
in
t
postCommentIndent
);
std
::
size_
t
postCommentIndent
);
bool
WriteAlias
(
ostream_wrapper
&
out
,
const
std
::
string
&
str
);
bool
WriteAnchor
(
ostream_wrapper
&
out
,
const
std
::
string
&
str
);
bool
WriteTag
(
ostream_wrapper
&
out
,
const
std
::
string
&
str
,
bool
verbatim
);
...
...
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