refactor(Core): apply clang-tidy modernize-use-nodiscard (#3835)

This commit is contained in:
Francesco Borzì
2020-12-06 19:39:48 +01:00
committed by GitHub
parent d4a58700d4
commit 161302252e
82 changed files with 1565 additions and 1569 deletions

View File

@@ -85,12 +85,12 @@ public:
return *this;
}
float lengthSquared() const
[[nodiscard]] float lengthSquared() const
{
return x * x + y * y + z * z;
}
float length() const
[[nodiscard]] float length() const
{
return sqrt(x * x + y * y + z * z);
}
@@ -192,12 +192,12 @@ public:
return *this;
}
float lengthSquared() const
[[nodiscard]] float lengthSquared() const
{
return x * x + y * y;
}
float length() const
[[nodiscard]] float length() const
{
return sqrt(x * x + y * y);
}