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
This commit is contained in:
parent
be636f72dc
commit
7054d03701
|
@ -39,9 +39,11 @@ Checks: >
|
||||||
-modernize-use-nodiscard,
|
-modernize-use-nodiscard,
|
||||||
-modernize-loop-convert,
|
-modernize-loop-convert,
|
||||||
-modernize-pass-by-value,
|
-modernize-pass-by-value,
|
||||||
-modernize-use-default-member-init,
|
|
||||||
-modernize-raw-string-literal,
|
-modernize-raw-string-literal,
|
||||||
-modernize-avoid-bind,
|
-modernize-avoid-bind,
|
||||||
-modernize-use-transparent-functors,
|
-modernize-use-transparent-functors,
|
||||||
|
|
||||||
WarningsAsErrors: '*'
|
WarningsAsErrors: '*'
|
||||||
|
CheckOptions:
|
||||||
|
- key: modernize-use-default-member-init.UseAssignment
|
||||||
|
value: 1
|
||||||
|
|
|
@ -1057,23 +1057,20 @@ enum ITT_value_kind { INONE, IPOINT, ISEGMENT, ICOPLANAR };
|
||||||
struct ITT_value {
|
struct ITT_value {
|
||||||
mpq3 p1; /* Only relevant for IPOINT and ISEGMENT kind. */
|
mpq3 p1; /* Only relevant for IPOINT and ISEGMENT kind. */
|
||||||
mpq3 p2; /* Only relevant for ISEGMENT kind. */
|
mpq3 p2; /* Only relevant for ISEGMENT kind. */
|
||||||
int t_source; /* Index of the source triangle that intersected the target one. */
|
int t_source = -1; /* Index of the source triangle that intersected the target one. */
|
||||||
enum ITT_value_kind kind;
|
enum ITT_value_kind kind = INONE;
|
||||||
|
|
||||||
ITT_value() : t_source(-1), kind(INONE)
|
ITT_value() = default;
|
||||||
{
|
explicit ITT_value(ITT_value_kind k) : kind(k)
|
||||||
}
|
|
||||||
ITT_value(ITT_value_kind k) : t_source(-1), kind(k)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
ITT_value(ITT_value_kind k, int tsrc) : t_source(tsrc), 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)
|
ITT_value(ITT_value_kind k, const mpq3 &p1, const mpq3 &p2) : p1(p1), p2(p2), kind(k)
|
||||||
: p1(p1), p2(p2), t_source(-1), kind(k)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
ITT_value(const ITT_value &other)
|
ITT_value(const ITT_value &other)
|
||||||
|
|
Loading…
Reference in New Issue