From 3bff30bf64715e93785b50bb66abaa801ae507ce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 20:17:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- include/sch/Matrix/SmallMatrix4x4T.h | 3 +-- src/CD/CD_Scene.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/sch/Matrix/SmallMatrix4x4T.h b/include/sch/Matrix/SmallMatrix4x4T.h index 1eac2ca5..cb6520a4 100644 --- a/include/sch/Matrix/SmallMatrix4x4T.h +++ b/include/sch/Matrix/SmallMatrix4x4T.h @@ -41,8 +41,7 @@ struct Matrix4x4T /*! Constructor form a scalar */ Matrix4x4T(const T x) { - for(int i = 0; i < 16; m[i++] = x) - ; + for(int i = 0; i < 16; m[i++] = x); } /*! Copy constructor */ diff --git a/src/CD/CD_Scene.cpp b/src/CD/CD_Scene.cpp index 1093323b..d2f43ae7 100644 --- a/src/CD/CD_Scene.cpp +++ b/src/CD/CD_Scene.cpp @@ -19,8 +19,7 @@ int CD_Scene::addObject(S_Object * O) { unsigned int i; /*looking for an empty place*/ - for(i = 0; (i < objects_.size()) && (objects_[i] != NULL); ++i) - ; + for(i = 0; (i < objects_.size()) && (objects_[i] != NULL); ++i); /*filling objects and possibly updating _pairs and _witness matrix*/ if(i == objects_.size())