Cleanup: clang-tidy

This commit is contained in:
2020-11-16 21:54:28 +11:00
parent 8fd27c152a
commit af013ff76f
3 changed files with 8 additions and 5 deletions

View File

@@ -696,7 +696,7 @@ void IMesh::remove_null_faces()
{
int64_t nullcount = 0;
for (Face *f : this->face_) {
if (f == NULL) {
if (f == nullptr) {
++nullcount;
}
}

View File

@@ -2279,12 +2279,15 @@ static int gpencil_select_exec(bContext *C, wmOperator *op)
if (toggle) {
if (hit_curve_point != NULL) {
BezTriple *bezt = &hit_curve_point->bezt;
if (bezt->f1 & SELECT && hit_curve_handle == 0)
if ((bezt->f1 & SELECT) && (hit_curve_handle == 0)) {
deselect = true;
if (bezt->f2 & SELECT && hit_curve_handle == 1)
}
if ((bezt->f2 & SELECT) && (hit_curve_handle == 1)) {
deselect = true;
if (bezt->f3 & SELECT && hit_curve_handle == 2)
}
if ((bezt->f3 & SELECT) && (hit_curve_handle == 2)) {
deselect = true;
}
}
else {
deselect = (hit_point->flag & GP_SPOINT_SELECT) != 0;

View File

@@ -2250,7 +2250,7 @@ static void gpencil_insert_point(bGPdata *gpd,
bGPDspoint *a_pt,
bGPDspoint *b_pt,
const float co_a[3],
float co_b[3])
const float co_b[3])
{
bGPDspoint *temp_points;
int totnewpoints, oldtotpoints;