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-07-03 15:20:42 +0300
committerJacques Lucke <jacques@blender.org>2020-07-03 15:20:42 +0300
commit5fbf70b0d0c5a387d01bba4b4d536d166e16ac0e (patch)
tree49b23dfe3d2181390c96ea58510bf510e0018da2 /source/blender/functions/FN_multi_function_data_type.hh
parentd64803f63b4311b0abb93542a907e97b47493e9f (diff)
Cleanup: use trailing underscore for non-public data members
Diffstat (limited to 'source/blender/functions/FN_multi_function_data_type.hh')
-rw-r--r--source/blender/functions/FN_multi_function_data_type.hh24
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/functions/FN_multi_function_data_type.hh b/source/blender/functions/FN_multi_function_data_type.hh
index 1a7b179c6ae..8bf2b06a9cc 100644
--- a/source/blender/functions/FN_multi_function_data_type.hh
+++ b/source/blender/functions/FN_multi_function_data_type.hh
@@ -38,10 +38,10 @@ class MFDataType {
};
private:
- Category m_category;
- const CPPType *m_type;
+ Category category_;
+ const CPPType *type_;
- MFDataType(Category category, const CPPType &type) : m_category(category), m_type(&type)
+ MFDataType(Category category, const CPPType &type) : category_(category), type_(&type)
{
}
@@ -70,29 +70,29 @@ class MFDataType {
bool is_single() const
{
- return m_category == Single;
+ return category_ == Single;
}
bool is_vector() const
{
- return m_category == Vector;
+ return category_ == Vector;
}
Category category() const
{
- return m_category;
+ return category_;
}
const CPPType &single_type() const
{
BLI_assert(this->is_single());
- return *m_type;
+ return *type_;
}
const CPPType &vector_base_type() const
{
BLI_assert(this->is_vector());
- return *m_type;
+ return *type_;
}
friend bool operator==(const MFDataType &a, const MFDataType &b);
@@ -100,11 +100,11 @@ class MFDataType {
std::string to_string() const
{
- switch (m_category) {
+ switch (category_) {
case Single:
- return m_type->name();
+ return type_->name();
case Vector:
- return m_type->name() + " Vector";
+ return type_->name() + " Vector";
}
BLI_assert(false);
return "";
@@ -113,7 +113,7 @@ class MFDataType {
inline bool operator==(const MFDataType &a, const MFDataType &b)
{
- return a.m_category == b.m_category && a.m_type == b.m_type;
+ return a.category_ == b.category_ && a.type_ == b.type_;
}
inline bool operator!=(const MFDataType &a, const MFDataType &b)