diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2023-04-26 08:41:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-28 08:23:04 +0200 |
commit | a33922e38b87db5b009986324c6543e90f18a752 (patch) | |
tree | 9c0d80bd1c55677efa6e3241fd3d6107c6c58c0c /framework/inc | |
parent | 2eb3922750b385dcadfd124d7baf686cec40eb5e (diff) |
optimise find/insert calls to maps
Instead of doing two lookups, we can just call insert and
then update the mapped-to value if the insert actually succeeded.
Change-Id: I3df3b98f0debe6bf74c739dd5850e7714d9c2789
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151030
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc')
0 files changed, 0 insertions, 0 deletions