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
62dc1077
Commit
62dc1077
authored
Sep 19, 2016
by
Tall??di Mih??ly
Committed by
Tallódi Mihály
Sep 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move constructor support for PrettyWriter
parent
307e0216
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
prettywriter.h
include/rapidjson/prettywriter.h
+14
-0
No files found.
include/rapidjson/prettywriter.h
View file @
62dc1077
...
...
@@ -22,6 +22,11 @@ RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF
(
effc
++
)
#endif
#if defined(__clang__)
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF
(
c
++
98
-
compat
)
#endif
RAPIDJSON_NAMESPACE_BEGIN
//! Combination of PrettyWriter format flags.
...
...
@@ -57,6 +62,11 @@ public:
explicit
PrettyWriter
(
StackAllocator
*
allocator
=
0
,
size_t
levelDepth
=
Base
::
kDefaultLevelDepth
)
:
Base
(
allocator
,
levelDepth
),
indentChar_
(
' '
),
indentCharCount_
(
4
)
{}
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
PrettyWriter
(
PrettyWriter
&&
rhs
)
:
Base
(
std
::
forward
<
PrettyWriter
>
(
rhs
)),
indentChar_
(
rhs
.
indentChar_
),
indentCharCount_
(
rhs
.
indentCharCount_
),
formatOptions_
(
rhs
.
formatOptions_
)
{}
#endif
//! Set custom indentation.
/*! \param indentChar Character for indentation. Must be whitespace character (' ', '\\t', '\\n', '\\r').
\param indentCharCount Number of indent characters for each indentation level.
...
...
@@ -254,6 +264,10 @@ private:
RAPIDJSON_NAMESPACE_END
#if defined(__clang__)
RAPIDJSON_DIAG_POP
#endif
#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif
...
...
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