cid#1618765 Big parameter passed by value

Change-Id: I16b53c5be24a9698c50c025f7f7cec8cca31ed1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172717
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-09-01 12:06:53 +01:00
parent fcd432494a
commit 4064be6b29
2 changed files with 14 additions and 0 deletions

View file

@ -15,6 +15,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,frozen,\
external/frozen/cid1532449_use_move_ctor.0 \
external/frozen/cid1586676_use_move_ctor.0 \
external/frozen/cid1538304_reference_ctor.0 \
external/frozen/cid1618765_big_param.0 \
))
# vim: set noet sw=4 ts=4:

13
external/frozen/cid1618765_big_param.0 vendored Normal file
View file

@ -0,0 +1,13 @@
--- include/frozen/bits/pmh.h 2024-09-01 12:04:54.942684661 +0100
+++ include/frozen/bits/pmh.h 2024-09-01 12:05:11.899749238 +0100
@@ -155,8 +155,8 @@
constexpr pmh_tables(
std::uint64_t first_seed,
- carray<seed_or_index, M> first_table,
- carray<std::size_t, M> second_table,
+ const carray<seed_or_index, M>& first_table,
+ const carray<std::size_t, M>& second_table,
Hasher hash) noexcept
: Hasher(hash)
, first_seed_(first_seed)