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
0c728253
Commit
0c728253
authored
Nov 08, 2012
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed all variables named 'null' (for real now, and only that)
parent
16f05e73
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
include/yaml-cpp/emitter.h
+1
-1
include/yaml-cpp/exceptions.h
+1
-1
include/yaml-cpp/mark.h
+1
-1
src/scanner.cpp
+1
-1
No files found.
include/yaml-cpp/emitter.h
View file @
0c728253
...
...
@@ -62,7 +62,7 @@ namespace YAML
Emitter
&
Write
(
const
_Anchor
&
anchor
);
Emitter
&
Write
(
const
_Tag
&
tag
);
Emitter
&
Write
(
const
_Comment
&
comment
);
Emitter
&
Write
(
const
_Null
&
n
ull
);
Emitter
&
Write
(
const
_Null
&
n
);
Emitter
&
Write
(
const
Binary
&
binary
);
template
<
typename
T
>
...
...
include/yaml-cpp/exceptions.h
View file @
0c728253
...
...
@@ -90,7 +90,7 @@ namespace YAML
class
EmitterException
:
public
Exception
{
public
:
EmitterException
(
const
std
::
string
&
msg_
)
:
Exception
(
Mark
::
null
(),
msg_
)
{}
:
Exception
(
Mark
::
null
_mark
(),
msg_
)
{}
};
}
...
...
include/yaml-cpp/mark.h
View file @
0c728253
...
...
@@ -13,7 +13,7 @@ namespace YAML
struct
YAML_CPP_API
Mark
{
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
line
,
column
;
...
...
src/scanner.cpp
View file @
0c728253
...
...
@@ -383,7 +383,7 @@ namespace YAML
// . Does not parse any more tokens.
void
Scanner
::
ThrowParserException
(
const
std
::
string
&
msg
)
const
{
Mark
mark
=
Mark
::
null
();
Mark
mark
=
Mark
::
null
_mark
();
if
(
!
m_tokens
.
empty
())
{
const
Token
&
token
=
m_tokens
.
front
();
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