Commit f1eb71e
Correct improper handle->getMemory() and item.getMemory() callsites
Summary:
This is the preparation work for `getMemory()`/`getMemoryAs()` APIs (in next diff D30938708):
We want read handle (i.e. `const itemHandle`) always return read-only memory and only write handle (i.e. `itemHandle`) can return mutable memory.
To fix the existing improper use of getMemory(), this diff:
- add `const` when the memory is obtained from read handle
- remove `const` if the memory is obtained from write handle
Reviewed By: stuclar
Differential Revision: D30443160
fbshipit-source-id: 09f8ff9008f949d0d71a42cb461b53f30b9415061 parent 6ae63ac commit f1eb71e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments