mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 22:06:21 +01:00
refactor(sonar): use =default for trivial special members (cpp:S3490)
This commit is contained in:
@@ -18,7 +18,7 @@ class float3
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float3(void){};
|
||||
float3() = default;
|
||||
float3(float a, float b, float c)
|
||||
{
|
||||
x = a;
|
||||
@@ -218,7 +218,7 @@ public:
|
||||
void deserialize_float32(std::istream&);
|
||||
void deserialize_float64(std::istream&);
|
||||
void serialize_float32(std::ostream&);
|
||||
float4x4(void){};
|
||||
float4x4() = default;
|
||||
float4x4(const float f[16])
|
||||
{
|
||||
for (int i = 0; i < 16; ++i)
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
#include "utilities/headtrack.h"
|
||||
#include "utilities/Globals.h"
|
||||
|
||||
headtrack::headtrack()
|
||||
{
|
||||
|
||||
}
|
||||
headtrack::headtrack() = default;
|
||||
|
||||
void headtrack::find_joy() {
|
||||
for (size_t i = GLFW_JOYSTICK_1; i <= GLFW_JOYSTICK_LAST; i++) {
|
||||
|
||||
Reference in New Issue
Block a user