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
06e09d1d
Commit
06e09d1d
authored
Nov 08, 2012
by
Jesse Beder
Browse files
Renamed all variables named 'null'
parent
979a9169
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
include/yaml-cpp/emitter.h
include/yaml-cpp/emitter.h
+1
-1
include/yaml-cpp/exceptions.h
include/yaml-cpp/exceptions.h
+1
-1
include/yaml-cpp/mark.h
include/yaml-cpp/mark.h
+1
-1
src/emitter.cpp
src/emitter.cpp
+1
-1
src/scanner.cpp
src/scanner.cpp
+1
-1
No files found.
include/yaml-cpp/emitter.h
View file @
06e09d1d
...
@@ -62,7 +62,7 @@ namespace YAML
...
@@ -62,7 +62,7 @@ namespace YAML
Emitter
&
Write
(
const
_Anchor
&
anchor
);
Emitter
&
Write
(
const
_Anchor
&
anchor
);
Emitter
&
Write
(
const
_Tag
&
tag
);
Emitter
&
Write
(
const
_Tag
&
tag
);
Emitter
&
Write
(
const
_Comment
&
comment
);
Emitter
&
Write
(
const
_Comment
&
comment
);
Emitter
&
Write
(
const
_Null
&
n
ull
);
Emitter
&
Write
(
const
_Null
&
n
);
Emitter
&
Write
(
const
Binary
&
binary
);
Emitter
&
Write
(
const
Binary
&
binary
);
template
<
typename
T
>
template
<
typename
T
>
...
...
include/yaml-cpp/exceptions.h
View file @
06e09d1d
...
@@ -90,7 +90,7 @@ namespace YAML
...
@@ -90,7 +90,7 @@ namespace YAML
class
EmitterException
:
public
Exception
{
class
EmitterException
:
public
Exception
{
public:
public:
EmitterException
(
const
std
::
string
&
msg_
)
EmitterException
(
const
std
::
string
&
msg_
)
:
Exception
(
Mark
::
null
(),
msg_
)
{}
:
Exception
(
Mark
::
null
_mark
(),
msg_
)
{}
};
};
}
}
...
...
include/yaml-cpp/mark.h
View file @
06e09d1d
...
@@ -13,7 +13,7 @@ namespace YAML
...
@@ -13,7 +13,7 @@ namespace YAML
struct
YAML_CPP_API
Mark
{
struct
YAML_CPP_API
Mark
{
Mark
()
:
pos
(
0
),
line
(
0
),
column
(
0
)
{}
Mark
()
:
pos
(
0
),
line
(
0
),
column
(
0
)
{}
static
const
Mark
null
()
{
return
Mark
(
-
1
,
-
1
,
-
1
);
}
static
const
Mark
null
_mark
()
{
return
Mark
(
-
1
,
-
1
,
-
1
);
}
int
pos
;
int
pos
;
int
line
,
column
;
int
line
,
column
;
...
...
src/emitter.cpp
View file @
06e09d1d
...
@@ -920,7 +920,7 @@ namespace YAML
...
@@ -920,7 +920,7 @@ namespace YAML
return
*
this
;
return
*
this
;
}
}
Emitter
&
Emitter
::
Write
(
const
_Null
&
/*n
ull
*/
)
Emitter
&
Emitter
::
Write
(
const
_Null
&
/*n*/
)
{
{
if
(
!
good
())
if
(
!
good
())
return
*
this
;
return
*
this
;
...
...
src/scanner.cpp
View file @
06e09d1d
...
@@ -383,7 +383,7 @@ namespace YAML
...
@@ -383,7 +383,7 @@ namespace YAML
// . Does not parse any more tokens.
// . Does not parse any more tokens.
void
Scanner
::
ThrowParserException
(
const
std
::
string
&
msg
)
const
void
Scanner
::
ThrowParserException
(
const
std
::
string
&
msg
)
const
{
{
Mark
mark
=
Mark
::
null
();
Mark
mark
=
Mark
::
null
_mark
();
if
(
!
m_tokens
.
empty
())
{
if
(
!
m_tokens
.
empty
())
{
const
Token
&
token
=
m_tokens
.
front
();
const
Token
&
token
=
m_tokens
.
front
();
mark
=
token
.
mark
;
mark
=
token
.
mark
;
...
...
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