Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-06-10 19:27:11 +0300
committerJacques Lucke <jacques@blender.org>2020-06-10 19:27:18 +0300
commit84d4447bc5220246f9d16ae3e91419af47b37b58 (patch)
tree7f08ae24ee65f9b48ca3b1d917fc95f998c48630 /source/blender/blenlib/BLI_map.hh
parent4c172f7ca6cff1387220696166a6e0ee9758ac98 (diff)
BLI: fix type forwarding in Map
Without this change, the code might do an unwanted conversion.
Diffstat (limited to 'source/blender/blenlib/BLI_map.hh')
-rw-r--r--source/blender/blenlib/BLI_map.hh2
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(); });
}
/**