Gui: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-20 18:12:43 +02:00
parent 3e35b5f606
commit c016f1c1fb
188 changed files with 408 additions and 1124 deletions

View File

@@ -204,9 +204,7 @@ void PolyPickerSelection::draw()
_pcView3D->redraw();
}
PolyPickerSelection::~PolyPickerSelection()
{
}
PolyPickerSelection::~PolyPickerSelection() = default;
int PolyPickerSelection::popupMenu()
{
@@ -357,9 +355,7 @@ PolyClipSelection::PolyClipSelection()
selectionBits.set(2);
}
PolyClipSelection::~PolyClipSelection()
{
}
PolyClipSelection::~PolyClipSelection() = default;
int PolyClipSelection::popupMenu()
{
@@ -404,14 +400,9 @@ int PolyClipSelection::popupMenu()
// -----------------------------------------------------------------------------------
FreehandSelection::FreehandSelection()
{
}
FreehandSelection::FreehandSelection() = default;
FreehandSelection::~FreehandSelection()
{
}
FreehandSelection::~FreehandSelection() = default;
void FreehandSelection::setClosed(bool on)
{
@@ -565,9 +556,7 @@ RubberbandSelection::RubberbandSelection()
rubberband.setColor(1.0, 1.0, 0.0, 0.5);
}
RubberbandSelection::~RubberbandSelection()
{
}
RubberbandSelection::~RubberbandSelection() = default;
void RubberbandSelection::setColor(float r, float g, float b, float a)
{
@@ -665,19 +654,13 @@ RectangleSelection::RectangleSelection() : RubberbandSelection()
rubberband.setColor(0.0,0.0,1.0,1.0);
}
RectangleSelection::~RectangleSelection()
{
}
RectangleSelection::~RectangleSelection() = default;
// -----------------------------------------------------------------------------------
BoxZoomSelection::BoxZoomSelection()
{
}
BoxZoomSelection::BoxZoomSelection() = default;
BoxZoomSelection::~BoxZoomSelection()
{
}
BoxZoomSelection::~BoxZoomSelection() = default;
void BoxZoomSelection::terminate(bool abort)
{