mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 17:13:47 +00:00
refactor(Core): apply clang-tidy modernize-use-nodiscard (#3835)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user