Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
88763450
Commit
88763450
authored
Jul 20, 2015
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial cherry-pick of
1859b718
to fix bug in List::adopt.
parent
3328792f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
list.h
c++/src/capnp/list.h
+2
-2
No files found.
c++/src/capnp/list.h
View file @
88763450
...
...
@@ -386,7 +386,7 @@ struct List<List<T>, Kind::LIST> {
}
inline
void
adopt
(
uint
index
,
Orphan
<
T
>&&
value
)
{
KJ_IREQUIRE
(
index
<
size
());
builder
.
getPointerElement
(
index
*
ELEMENTS
).
adopt
(
kj
::
mv
(
value
));
builder
.
getPointerElement
(
index
*
ELEMENTS
).
adopt
(
kj
::
mv
(
value
.
builder
));
}
inline
Orphan
<
T
>
disown
(
uint
index
)
{
KJ_IREQUIRE
(
index
<
size
());
...
...
@@ -484,7 +484,7 @@ struct List<T, Kind::BLOB> {
}
inline
void
adopt
(
uint
index
,
Orphan
<
T
>&&
value
)
{
KJ_IREQUIRE
(
index
<
size
());
builder
.
getPointerElement
(
index
*
ELEMENTS
).
adopt
(
kj
::
mv
(
value
));
builder
.
getPointerElement
(
index
*
ELEMENTS
).
adopt
(
kj
::
mv
(
value
.
builder
));
}
inline
Orphan
<
T
>
disown
(
uint
index
)
{
KJ_IREQUIRE
(
index
<
size
());
...
...
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