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
5d5d90c1
Commit
5d5d90c1
authored
Jun 25, 2015
by
miloyip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applies the same changes for Chinese as #365
parent
c752b6aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tutorial.zh-cn.md
doc/tutorial.zh-cn.md
+2
-2
No files found.
doc/tutorial.zh-cn.md
View file @
5d5d90c1
...
...
@@ -297,7 +297,7 @@ Value o(kObjectType);
Value contacts(kArrayType);
// 把元素加进contacts数组。
// ...
o.AddMember("contacts", contacts); // 深度复制contacts (可能有大量内存分配)
o.AddMember("contacts", contacts
, d.GetAllocator()
); // 深度复制contacts (可能有大量内存分配)
// 析构contacts。
}
~~~
~~~~~~~
...
...
@@ -317,7 +317,7 @@ Value o(kObjectType);
{
Value contacts(kArrayType);
// adding elements to contacts array.
o.AddMember("contacts", contacts); // 只需 memcpy() contacts本身至新成员的Value(16字节)
o.AddMember("contacts", contacts
, d.GetAllocator()
); // 只需 memcpy() contacts本身至新成员的Value(16字节)
// contacts在这里变成Null。它的析构是平凡的。
}
~~~
~~~~~~~
...
...
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