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
ba7aa979
Commit
ba7aa979
authored
Feb 02, 2016
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring: Remove GenericSchemaValiadator::nullOutputHandler_
parent
02ea9f9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
schema.h
include/rapidjson/schema.h
+7
-3
No files found.
include/rapidjson/schema.h
View file @
ba7aa979
...
...
@@ -1540,7 +1540,7 @@ public:
:
schemaDocument_
(
&
schemaDocument
),
root_
(
schemaDocument
.
GetRoot
()),
outputHandler_
(
nullOutputHandler_
),
outputHandler_
(
GetNullHandler
()
),
stateAllocator_
(
allocator
),
ownStateAllocator_
(
0
),
schemaStack_
(
allocator
,
schemaStackCapacity
),
...
...
@@ -1764,7 +1764,7 @@ private:
:
schemaDocument_
(
&
schemaDocument
),
root_
(
root
),
outputHandler_
(
nullOutputHandler_
),
outputHandler_
(
GetNullHandler
()
),
stateAllocator_
(
allocator
),
ownStateAllocator_
(
0
),
schemaStack_
(
allocator
,
schemaStackCapacity
),
...
...
@@ -1882,11 +1882,15 @@ private:
Context
&
CurrentContext
()
{
return
*
schemaStack_
.
template
Top
<
Context
>
();
}
const
Context
&
CurrentContext
()
const
{
return
*
schemaStack_
.
template
Top
<
Context
>
();
}
static
OutputHandler
&
GetNullHandler
()
{
static
OutputHandler
nullHandler
;
return
nullHandler
;
}
static
const
size_t
kDefaultSchemaStackCapacity
=
1024
;
static
const
size_t
kDefaultDocumentStackCapacity
=
256
;
const
SchemaDocumentType
*
schemaDocument_
;
const
SchemaType
&
root_
;
OutputHandler
nullOutputHandler_
;
OutputHandler
&
outputHandler_
;
StateAllocator
*
stateAllocator_
;
StateAllocator
*
ownStateAllocator_
;
...
...
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