Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
0f407104
Commit
0f407104
authored
Sep 04, 2014
by
Kosta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix `simplereader.cpp` and the `Key()->String()` forwarding in `BaseReaderHandler`
parent
23b3d243
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
simplereader.cpp
example/simplereader/simplereader.cpp
+1
-0
reader.h
include/rapidjson/reader.h
+1
-1
No files found.
example/simplereader/simplereader.cpp
View file @
0f407104
...
...
@@ -17,6 +17,7 @@ struct MyHandler {
return
true
;
}
bool
StartObject
()
{
cout
<<
"StartObject()"
<<
endl
;
return
true
;
}
bool
Key
(
const
char
*
str
,
SizeType
length
,
bool
copy
)
{
return
String
(
str
,
length
,
copy
);
}
bool
EndObject
(
SizeType
memberCount
)
{
cout
<<
"EndObject("
<<
memberCount
<<
")"
<<
endl
;
return
true
;
}
bool
StartArray
()
{
cout
<<
"StartArray()"
<<
endl
;
return
true
;
}
bool
EndArray
(
SizeType
elementCount
)
{
cout
<<
"EndArray("
<<
elementCount
<<
")"
<<
endl
;
return
true
;
}
...
...
include/rapidjson/reader.h
View file @
0f407104
...
...
@@ -182,7 +182,7 @@ struct BaseReaderHandler {
bool
Double
(
double
)
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
String
(
const
Ch
*
,
SizeType
,
bool
)
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
StartObject
()
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
Key
(
const
Ch
*
str
,
SizeType
len
,
bool
copy
)
{
return
String
(
str
,
len
,
copy
);
}
bool
Key
(
const
Ch
*
str
,
SizeType
len
,
bool
copy
)
{
return
static_cast
<
Override
&>
(
*
this
).
String
(
str
,
len
,
copy
);
}
bool
EndObject
(
SizeType
)
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
StartArray
()
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
EndArray
(
SizeType
)
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
...
...
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