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-30 19:05:44 +0300
committerJacques Lucke <jacques@blender.org>2020-06-30 19:18:48 +0300
commitc2ebf3edb48c741bac9ceead65db88a6bf16a9a5 (patch)
tree15b26c30198bb62e8d6e3119bfd01f93fae815d0 /source/blender/functions/FN_multi_function.hh
parent67da2bd23a5496e5f2228a20e54c138c3d03d9eb (diff)
Functions: provide dummy multi function
Sometimes it is convenient to be able to return a reference to some dummy function.
Diffstat (limited to 'source/blender/functions/FN_multi_function.hh')
-rw-r--r--source/blender/functions/FN_multi_function.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/functions/FN_multi_function.hh b/source/blender/functions/FN_multi_function.hh
index 3c9d833459a..a7e964b6651 100644
--- a/source/blender/functions/FN_multi_function.hh
+++ b/source/blender/functions/FN_multi_function.hh
@@ -88,9 +88,9 @@ class MultiFunction {
}
protected:
- MFSignatureBuilder get_builder(StringRef function_name)
+ MFSignatureBuilder get_builder(std::string function_name)
{
- m_signature.function_name = function_name;
+ m_signature.function_name = std::move(function_name);
return MFSignatureBuilder(m_signature);
}
};
@@ -100,6 +100,8 @@ inline MFParamsBuilder::MFParamsBuilder(const class MultiFunction &fn, uint min_
{
}
+extern const MultiFunction &dummy_multi_function;
+
} // namespace fn
} // namespace blender