diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2023-02-16 11:45:51 -0500 |
---|---|---|
committer | Rose <83477269+AtariDreams@users.noreply.github.com> | 2023-02-16 11:46:21 -0500 |
commit | 6089a04018dc912e11e11f8b0bd7d2118921e6af (patch) | |
tree | 20449c1c13d5d96ab3319136007f481d529e31b8 /absl/crc | |
parent | 2d4c6872da56fa0d8156b01ab5658348d9c5de4d (diff) |
Prefer emplace back over push_back where emplace_back is more appropriate
This also helps a lot with dealing with conversions and data structure creation under the hood.
Diffstat (limited to 'absl/crc')
-rw-r--r-- | absl/crc/internal/crc_cord_state.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/crc/internal/crc_cord_state.cc b/absl/crc/internal/crc_cord_state.cc index d0be0ddd..28d04dc4 100644 --- a/absl/crc/internal/crc_cord_state.cc +++ b/absl/crc/internal/crc_cord_state.cc @@ -121,7 +121,7 @@ void CrcCordState::Poison() { } } else { // Add a fake corrupt chunk. - rep->prefix_crc.push_back(PrefixCrc(0, crc32c_t{1})); + rep->prefix_crc.emplace_back(0, crc32c_t{1}); } } |