clang-tidy mathlib remove redundant void

This commit is contained in:
Daniel Agar
2017-04-23 16:25:54 -04:00
parent e112161a04
commit 6e1113ae4d
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -217,7 +217,7 @@ public:
/** /**
* negation * negation
*/ */
Matrix<M, N> operator -(void) const Matrix<M, N> operator -() const
{ {
Matrix<M, N> res; Matrix<M, N> res;
@@ -351,7 +351,7 @@ public:
/** /**
* transpose the matrix * transpose the matrix
*/ */
Matrix<N, M> transposed(void) const Matrix<N, M> transposed() const
{ {
matrix::Matrix<float, M, N> Me(this->arm_mat.pData); matrix::Matrix<float, M, N> Me(this->arm_mat.pData);
Matrix<N, M> res(Me.transpose().data()); Matrix<N, M> res(Me.transpose().data());
@@ -361,7 +361,7 @@ public:
/** /**
* invert the matrix * invert the matrix
*/ */
Matrix<M, N> inversed(void) const Matrix<M, N> inversed() const
{ {
matrix::SquareMatrix<float, M> Me = matrix::Matrix<float, M, N>(this->arm_mat.pData); matrix::SquareMatrix<float, M> Me = matrix::Matrix<float, M, N>(this->arm_mat.pData);
Matrix<M, N> res(Me.I().data()); Matrix<M, N> res(Me.I().data());
@@ -371,7 +371,7 @@ public:
/** /**
* set zero matrix * set zero matrix
*/ */
void zero(void) void zero()
{ {
memset(data, 0, sizeof(data)); memset(data, 0, sizeof(data));
} }
@@ -379,7 +379,7 @@ public:
/** /**
* set identity matrix * set identity matrix
*/ */
void identity(void) void identity()
{ {
memset(data, 0, sizeof(data)); memset(data, 0, sizeof(data));
unsigned int n = (M < N) ? M : N; unsigned int n = (M < N) ? M : N;
@@ -389,7 +389,7 @@ public:
} }
} }
void print(void) void print()
{ {
for (unsigned int i = 0; i < M; i++) { for (unsigned int i = 0; i < M; i++) {
printf("[ "); printf("[ ");
+2 -2
View File
@@ -175,7 +175,7 @@ public:
/** /**
* negation * negation
*/ */
const Vector<N> operator -(void) const const Vector<N> operator -() const
{ {
Vector<N> res; Vector<N> res;
@@ -384,7 +384,7 @@ public:
memset(data, 0, sizeof(data)); memset(data, 0, sizeof(data));
} }
void print(void) void print()
{ {
printf("[ "); printf("[ ");