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:
authorAnkit Meel <ankitjmeel@gmail.com>2021-02-05 16:39:36 +0300
committerAnkit Meel <ankitjmeel@gmail.com>2021-02-05 16:39:36 +0300
commit7054d03701250b245df9cf60b80c3c5e9aca308f (patch)
tree71e35d1d29d8a4ebcb6c3e4688f56e2b3a9364b9 /source/blender/blenlib/intern/mesh_intersect.cc
parentbe636f72dcc1ca1bc815b246bb6661c0b7b11f82 (diff)
Cleanup: Clang-tidy modernize-use-default-member-init
Using assignment syntax as we don't use `{}` initialization yet. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9501
Diffstat (limited to 'source/blender/blenlib/intern/mesh_intersect.cc')
-rw-r--r--source/blender/blenlib/intern/mesh_intersect.cc19
1 files changed, 8 insertions, 11 deletions
diff --git a/source/blender/blenlib/intern/mesh_intersect.cc b/source/blender/blenlib/intern/mesh_intersect.cc
index 04f86734b8a..b2b8dd4e900 100644
--- a/source/blender/blenlib/intern/mesh_intersect.cc
+++ b/source/blender/blenlib/intern/mesh_intersect.cc
@@ -1055,25 +1055,22 @@ static std::ostream &operator<<(std::ostream &os, const CoplanarClusterInfo &cli
enum ITT_value_kind { INONE, IPOINT, ISEGMENT, ICOPLANAR };
struct ITT_value {
- mpq3 p1; /* Only relevant for IPOINT and ISEGMENT kind. */
- mpq3 p2; /* Only relevant for ISEGMENT kind. */
- int t_source; /* Index of the source triangle that intersected the target one. */
- enum ITT_value_kind kind;
+ mpq3 p1; /* Only relevant for IPOINT and ISEGMENT kind. */
+ mpq3 p2; /* Only relevant for ISEGMENT kind. */
+ int t_source = -1; /* Index of the source triangle that intersected the target one. */
+ enum ITT_value_kind kind = INONE;
- ITT_value() : t_source(-1), kind(INONE)
- {
- }
- ITT_value(ITT_value_kind k) : t_source(-1), kind(k)
+ ITT_value() = default;
+ explicit ITT_value(ITT_value_kind k) : kind(k)
{
}
ITT_value(ITT_value_kind k, int tsrc) : t_source(tsrc), kind(k)
{
}
- ITT_value(ITT_value_kind k, const mpq3 &p1) : p1(p1), t_source(-1), kind(k)
+ ITT_value(ITT_value_kind k, const mpq3 &p1) : p1(p1), kind(k)
{
}
- ITT_value(ITT_value_kind k, const mpq3 &p1, const mpq3 &p2)
- : p1(p1), p2(p2), t_source(-1), kind(k)
+ ITT_value(ITT_value_kind k, const mpq3 &p1, const mpq3 &p2) : p1(p1), p2(p2), kind(k)
{
}
ITT_value(const ITT_value &other)