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
8dfc97f5
Commit
8dfc97f5
authored
Aug 28, 2014
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change PrettyWriter Allocator=MemoryPoolAllocator<> to StackAllocator = CrtAllocator
Fixes #118
parent
b5928618
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
prettywriter.h
include/rapidjson/prettywriter.h
+5
-5
No files found.
include/rapidjson/prettywriter.h
View file @
8dfc97f5
...
...
@@ -35,12 +35,12 @@ namespace rapidjson {
\tparam OutputStream Type of ouptut os.
\tparam SourceEncoding Encoding of source string.
\tparam TargetEncoding Encoding of output stream.
\tparam Allocator Type of allocator for allocating memory of stack.
\tparam
Stack
Allocator Type of allocator for allocating memory of stack.
*/
template
<
typename
OutputStream
,
typename
SourceEncoding
=
UTF8
<>
,
typename
TargetEncoding
=
UTF8
<>
,
typename
Allocator
=
MemoryPoolAllocator
<>
>
class
PrettyWriter
:
public
Writer
<
OutputStream
,
SourceEncoding
,
TargetEncoding
,
Allocator
>
{
template
<
typename
OutputStream
,
typename
SourceEncoding
=
UTF8
<>
,
typename
TargetEncoding
=
UTF8
<>
,
typename
StackAllocator
=
CrtAllocator
>
class
PrettyWriter
:
public
Writer
<
OutputStream
,
SourceEncoding
,
TargetEncoding
,
Stack
Allocator
>
{
public
:
typedef
Writer
<
OutputStream
,
SourceEncoding
,
TargetEncoding
,
Allocator
>
Base
;
typedef
Writer
<
OutputStream
,
SourceEncoding
,
TargetEncoding
,
Stack
Allocator
>
Base
;
typedef
typename
Base
::
Ch
Ch
;
//! Constructor
...
...
@@ -48,7 +48,7 @@ public:
\param allocator User supplied allocator. If it is null, it will create a private one.
\param levelDepth Initial capacity of stack.
*/
PrettyWriter
(
OutputStream
&
os
,
Allocator
*
allocator
=
0
,
size_t
levelDepth
=
Base
::
kDefaultLevelDepth
)
:
PrettyWriter
(
OutputStream
&
os
,
Stack
Allocator
*
allocator
=
0
,
size_t
levelDepth
=
Base
::
kDefaultLevelDepth
)
:
Base
(
os
,
allocator
,
levelDepth
),
indentChar_
(
' '
),
indentCharCount_
(
4
)
{}
//! Set custom indentation.
...
...
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