diff options
| author | 2020-01-14 15:53:11 +0000 | |
|---|---|---|
| committer | 2020-01-20 17:12:58 +0000 | |
| commit | cc72e981c78a1110cf233541a2e6c8aa3525b00e (patch) | |
| tree | 28e8eefe8e3d4cf745d1f67b21f1d64a86e881e8 /python/python.go | |
| parent | dca59a516dd21c0527d626cd313b31c36365c7f2 (diff) | |
Use deep copy when copying bpPropertySets
Previously, only a shallow copy was made so the copy ends up sharing
some contents with the original. That was a potential source of bugs
as the copy was being made in order to be mutated.
This change switches to a deep copy; renaming the methods from
copy -> deepCopy to clarify the intent.
Makes the bpPropertySet member of bpModule a *bpPropertySet to avoid
unnecessary copying of bpPropertySet.
Bug: 142940300
Test: m nothing
Change-Id: I3f2eaa9fffab4e61d5a7cec81aa42fee9fdfec44
Diffstat (limited to 'python/python.go')
0 files changed, 0 insertions, 0 deletions