Commit 8e58e1c
PR #23056: Remove std::move for trivially copyable types
Imported from GitHub PR #23056
Changes:
- Removed unnecessary std::move calls for some trivially_copyable classes
- Literal::CopyFrom expects a reference (&), not an r-value reference (&&). Removed std::move on the first parameter.
Copybara import of the project:
--
6051f15 by Alexander Pivovarov <[email protected]>:
Remove std::move for trivially copyable types
Merging this change closes #23056
COPYBARA_INTEGRATE_REVIEW=#23056 from apivovarov:no_move_for_KernelMetadata 6051f15
PiperOrigin-RevId: 7391146051 parent 8eb6944 commit 8e58e1c
2 files changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
| 380 | + | |
382 | 381 | | |
383 | 382 | | |
384 | 383 | | |
| |||
1707 | 1706 | | |
1708 | 1707 | | |
1709 | 1708 | | |
1710 | | - | |
| 1709 | + | |
1711 | 1710 | | |
1712 | 1711 | | |
1713 | 1712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 223 | + | |
226 | 224 | | |
227 | 225 | | |
228 | 226 | | |
| |||
0 commit comments