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
a45f083e
Commit
a45f083e
authored
Sep 03, 2008
by
Jesse Beder
Browse files
Fixed some gcc warnings.
parent
5c0db0d2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
include/node.h
include/node.h
+1
-1
src/iterpriv.h
src/iterpriv.h
+2
-2
yaml-reader/main.cpp
yaml-reader/main.cpp
+3
-1
No files found.
include/node.h
View file @
a45f083e
...
...
@@ -85,8 +85,8 @@ namespace YAML
void
ParseAlias
(
Scanner
*
pScanner
,
const
ParserState
&
state
);
private:
bool
m_alias
;
std
::
string
m_anchor
,
m_tag
;
Content
*
m_pContent
;
bool
m_alias
;
};
}
src/iterpriv.h
View file @
a45f083e
...
...
@@ -13,8 +13,8 @@ namespace YAML
struct
IterPriv
{
IterPriv
()
:
type
(
IT_NONE
)
{}
IterPriv
(
std
::
vector
<
Node
*>::
const_iterator
it
)
:
seqIter
(
it
),
type
(
IT_SEQ
)
{}
IterPriv
(
std
::
map
<
Node
*
,
Node
*
,
ltnode
>::
const_iterator
it
)
:
mapIter
(
it
),
type
(
IT_MAP
)
{}
IterPriv
(
std
::
vector
<
Node
*>::
const_iterator
it
)
:
type
(
IT_SEQ
),
seqIter
(
it
)
{}
IterPriv
(
std
::
map
<
Node
*
,
Node
*
,
ltnode
>::
const_iterator
it
)
:
type
(
IT_MAP
),
mapIter
(
it
)
{}
enum
ITER_TYPE
{
IT_NONE
,
IT_SEQ
,
IT_MAP
};
ITER_TYPE
type
;
...
...
yaml-reader/main.cpp
View file @
a45f083e
...
...
@@ -3,11 +3,13 @@
#include <fstream>
#include <iostream>
#ifdef _MSC_VER
#ifdef _DEBUG
#pragma comment(lib, "yamlcppd.lib")
#else
#pragma comment(lib, "yamlcpp.lib")
#endif
#endif // _DEBUG
#endif // _MSC_VER
void
run
()
{
...
...
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