mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-05 07:34:27 +01:00
refactor(sonar): use =default for trivial special members (cpp:S3490)
This commit is contained in:
@@ -15,9 +15,7 @@ cMoon::cMoon() {
|
|||||||
m_observer.temp = 15.0; // ambient dry-bulb temperature, degrees C
|
m_observer.temp = 15.0; // ambient dry-bulb temperature, degrees C
|
||||||
}
|
}
|
||||||
|
|
||||||
cMoon::~cMoon() {
|
cMoon::~cMoon() = default;
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
cMoon::init() {
|
cMoon::init() {
|
||||||
|
|||||||
@@ -53,8 +53,7 @@ CSkyDome::CSkyDome (int const Tesselation) :
|
|||||||
Generate();
|
Generate();
|
||||||
}
|
}
|
||||||
|
|
||||||
CSkyDome::~CSkyDome() {
|
CSkyDome::~CSkyDome() = default;
|
||||||
}
|
|
||||||
|
|
||||||
//******************************************************************************//
|
//******************************************************************************//
|
||||||
|
|
||||||
|
|||||||
@@ -15,10 +15,7 @@ cSun::cSun() {
|
|||||||
m_observer.temp = 15.0; // ambient dry-bulb temperature, degrees C
|
m_observer.temp = 15.0; // ambient dry-bulb temperature, degrees C
|
||||||
}
|
}
|
||||||
|
|
||||||
cSun::~cSun()
|
cSun::~cSun() = default;
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
cSun::init() {
|
cSun::init() {
|
||||||
|
|||||||
@@ -55,9 +55,7 @@ void network::server_manager::create_server(const std::string &backend, const st
|
|||||||
servers.emplace_back(it->second->create_server(backbuffer, conf));
|
servers.emplace_back(it->second->create_server(backbuffer, conf));
|
||||||
}
|
}
|
||||||
|
|
||||||
network::manager::manager()
|
network::manager::manager() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void network::manager::update()
|
void network::manager::update()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ public:
|
|||||||
// constructors:
|
// constructors:
|
||||||
null_geometrybank() = default;
|
null_geometrybank() = default;
|
||||||
// destructor
|
// destructor
|
||||||
~null_geometrybank() {};
|
~null_geometrybank() = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// methods:
|
// methods:
|
||||||
@@ -43,7 +43,7 @@ public:
|
|||||||
// constructors
|
// constructors
|
||||||
null_renderer() = default;
|
null_renderer() = default;
|
||||||
// destructor
|
// destructor
|
||||||
~null_renderer() { }
|
~null_renderer() = default;
|
||||||
// methods
|
// methods
|
||||||
bool
|
bool
|
||||||
Init( GLFWwindow *Window ) override { return true; }
|
Init( GLFWwindow *Window ) override { return true; }
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class float3
|
|||||||
float x;
|
float x;
|
||||||
float y;
|
float y;
|
||||||
float z;
|
float z;
|
||||||
float3(void){};
|
float3() = default;
|
||||||
float3(float a, float b, float c)
|
float3(float a, float b, float c)
|
||||||
{
|
{
|
||||||
x = a;
|
x = a;
|
||||||
@@ -218,7 +218,7 @@ public:
|
|||||||
void deserialize_float32(std::istream&);
|
void deserialize_float32(std::istream&);
|
||||||
void deserialize_float64(std::istream&);
|
void deserialize_float64(std::istream&);
|
||||||
void serialize_float32(std::ostream&);
|
void serialize_float32(std::ostream&);
|
||||||
float4x4(void){};
|
float4x4() = default;
|
||||||
float4x4(const float f[16])
|
float4x4(const float f[16])
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 16; ++i)
|
for (int i = 0; i < 16; ++i)
|
||||||
|
|||||||
@@ -2,10 +2,7 @@
|
|||||||
#include "utilities/headtrack.h"
|
#include "utilities/headtrack.h"
|
||||||
#include "utilities/Globals.h"
|
#include "utilities/Globals.h"
|
||||||
|
|
||||||
headtrack::headtrack()
|
headtrack::headtrack() = default;
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void headtrack::find_joy() {
|
void headtrack::find_joy() {
|
||||||
for (size_t i = GLFW_JOYSTICK_1; i <= GLFW_JOYSTICK_LAST; i++) {
|
for (size_t i = GLFW_JOYSTICK_1; i <= GLFW_JOYSTICK_LAST; i++) {
|
||||||
|
|||||||
@@ -18,9 +18,7 @@ AirCoupler::AirCoupler()
|
|||||||
Clear();
|
Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
AirCoupler::~AirCoupler()
|
AirCoupler::~AirCoupler() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \return 1 when \(straight\) TModel3d \c only ModelOn exists
|
* \return 1 when \(straight\) TModel3d \c only ModelOn exists
|
||||||
|
|||||||
@@ -632,7 +632,7 @@ TTrain::TTrain()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TTrain::~TTrain() {}
|
TTrain::~TTrain() = default;
|
||||||
|
|
||||||
bool TTrain::Init(TDynamicObject *NewDynamicObject, bool e3d)
|
bool TTrain::Init(TDynamicObject *NewDynamicObject, bool e3d)
|
||||||
{ // powiązanie ręcznego sterowania kabiną z pojazdem
|
{ // powiązanie ręcznego sterowania kabiną z pojazdem
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
ui::popup::popup(ui_panel &panel) : m_parent(panel) {}
|
ui::popup::popup(ui_panel &panel) : m_parent(panel) {}
|
||||||
|
|
||||||
ui::popup::~popup() {}
|
ui::popup::~popup() = default;
|
||||||
|
|
||||||
bool ui::popup::render()
|
bool ui::popup::render()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user