diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-10 19:27:11 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-10 19:27:18 +0300 |
commit | 84d4447bc5220246f9d16ae3e91419af47b37b58 (patch) | |
tree | 7f08ae24ee65f9b48ca3b1d917fc95f998c48630 /source/blender/blenlib | |
parent | 4c172f7ca6cff1387220696166a6e0ee9758ac98 (diff) |
BLI: fix type forwarding in Map
Without this change, the code might do an unwanted conversion.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_map.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_map.hh b/source/blender/blenlib/BLI_map.hh index 82415dd5726..13f1a967d65 100644 --- a/source/blender/blenlib/BLI_map.hh +++ b/source/blender/blenlib/BLI_map.hh @@ -610,7 +610,7 @@ class Map { */ template<typename ForwardKey> Value &lookup_or_add_default_as(ForwardKey &&key) { - return this->lookup_or_add_cb(std::forward<ForwardKey>(key), []() { return Value(); }); + return this->lookup_or_add_cb_as(std::forward<ForwardKey>(key), []() { return Value(); }); } /** |