From 6e1113ae4d1d3674a7f8fc037ac2aee2505fa1b1 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 23 Apr 2017 16:25:54 -0400 Subject: [PATCH] clang-tidy mathlib remove redundant void --- src/lib/mathlib/math/Matrix.hpp | 12 ++++++------ src/lib/mathlib/math/Vector.hpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/mathlib/math/Matrix.hpp b/src/lib/mathlib/math/Matrix.hpp index f9cb5f08a1..5b2cee931f 100644 --- a/src/lib/mathlib/math/Matrix.hpp +++ b/src/lib/mathlib/math/Matrix.hpp @@ -217,7 +217,7 @@ public: /** * negation */ - Matrix operator -(void) const + Matrix operator -() const { Matrix res; @@ -351,7 +351,7 @@ public: /** * transpose the matrix */ - Matrix transposed(void) const + Matrix transposed() const { matrix::Matrix Me(this->arm_mat.pData); Matrix res(Me.transpose().data()); @@ -361,7 +361,7 @@ public: /** * invert the matrix */ - Matrix inversed(void) const + Matrix inversed() const { matrix::SquareMatrix Me = matrix::Matrix(this->arm_mat.pData); Matrix res(Me.I().data()); @@ -371,7 +371,7 @@ public: /** * set zero matrix */ - void zero(void) + void zero() { memset(data, 0, sizeof(data)); } @@ -379,7 +379,7 @@ public: /** * set identity matrix */ - void identity(void) + void identity() { memset(data, 0, sizeof(data)); 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++) { printf("[ "); diff --git a/src/lib/mathlib/math/Vector.hpp b/src/lib/mathlib/math/Vector.hpp index 80370acbf2..2143b0486d 100644 --- a/src/lib/mathlib/math/Vector.hpp +++ b/src/lib/mathlib/math/Vector.hpp @@ -175,7 +175,7 @@ public: /** * negation */ - const Vector operator -(void) const + const Vector operator -() const { Vector res; @@ -384,7 +384,7 @@ public: memset(data, 0, sizeof(data)); } - void print(void) + void print() { printf("[ ");