Commit 699ec1e4 authored by Mathieu Faverge's avatar Mathieu Faverge

Apply patch 2 from issue #13

parent 0e9d8bdd
......@@ -91,9 +91,7 @@ const Message::end_information_t Message::endi;
const Message::end_selection_information_t Message::endsi;
#endif
Message::Message() {
}
Message::Message() = default;
Message *Message::get_instance() {
if (_message)
......
......@@ -90,8 +90,7 @@ Interval_select::Interval_select(Interface_graphic * console,QWidget *parent) :
_applied = false;
}
Interval_select::~Interval_select() {
}
Interval_select::~Interval_select() = default;
Trace* Interval_select::get_trace() {
return _trace;
......
......@@ -87,8 +87,7 @@ Node_select::Node_select(Interface_graphic * console,QWidget *parent) : QWidget(
QMetaObject::connectSlotsByName(nullptr);
}
Node_select::~Node_select() {
}
Node_select::~Node_select() = default;
void Node_select::set_initial_container_names(){
......
......@@ -526,8 +526,7 @@ Settings_window::Settings_window(Core *c, QWidget *parent)
tabWidget->insertTab(3, _tab_links, "Links");
}
Settings_window::~Settings_window() {
}
Settings_window::~Settings_window() = default;
void Settings_window::on_tabWidget_currentChanged(int ) {
......
This diff is collapsed.
......@@ -416,9 +416,7 @@ QxtSpanSlider::QxtSpanSlider(Qt::Orientation orientation, QWidget* parent) : QSl
/*!
Destructs the span slider.
*/
QxtSpanSlider::~QxtSpanSlider()
{
}
QxtSpanSlider::~QxtSpanSlider() = default;
/*!
\property QxtSpanSlider::handleMovementMode
......
......@@ -12,8 +12,7 @@ viteQTreeWidget::viteQTreeWidget(QWidget *parent)
}
viteQTreeWidget::~viteQTreeWidget(){
}
viteQTreeWidget::~viteQTreeWidget() = default;
void viteQTreeWidget::dropEvent(QDropEvent *e){
......
......@@ -85,7 +85,7 @@ typedef struct PajeLine {
int _nbtks;
char **_tokens;
PajeLine() {}
PajeLine() = default;
} PajeLine_t;
......
......@@ -69,9 +69,9 @@
/* -- */
using namespace std;
ParserVite::ParserVite() {}
ParserVite::ParserVite() = default;
ParserVite::ParserVite(const std::string &filename) : Parser(filename) {}
ParserVite::~ParserVite() {}
ParserVite::~ParserVite() = default;
void ParserVite::parse(Trace &trace,
bool finish_trace_after_parse){
......
......@@ -78,7 +78,7 @@ public:
Parser();
Parser(const std::string &filename);
virtual ~Parser() {};
virtual ~Parser() = default;
/*!
* \fn parse(const std::string &filename, Trace &trace, bool finish_trace_after_parse = true)
......
......@@ -99,8 +99,7 @@ private:
* \brief The default constructor is in private scope to prevent Render instanciation without
* provide a drawing instance.
*/
GanttDiagram(){
}
GanttDiagram() = default;
public:
......@@ -120,8 +119,7 @@ public:
/*!
* \brief The destructor
*/
virtual ~GanttDiagram(){
}
virtual ~GanttDiagram() = default;
/***********************************
*
......
......@@ -85,8 +85,7 @@ Geometry::Geometry(){
}
Geometry::~Geometry(){
}
Geometry::~Geometry() = default;
......
......@@ -179,8 +179,7 @@ Hook_event::Hook_event(Render* render_instance, Core* core, QWidget *parent, con
}
Hook_event::~Hook_event(){
}
Hook_event::~Hook_event() = default;
......
......@@ -61,7 +61,7 @@ private:
/*!
* \brief The default constructor. In private scope to prevent instance.
*/
Ruler(){}
Ruler() = default;
/***********************************
*
......
......@@ -62,8 +62,7 @@ Render_stats_svg::Render_stats_svg(string filename){
_y_max = 0;
}
Render_stats_svg::~Render_stats_svg(){
}
Render_stats_svg::~Render_stats_svg() = default;
void Render_stats_svg::set_total_height(Element_pos h) {
......
......@@ -90,8 +90,7 @@ public:
/*!
* \brief The destructor
*/
virtual ~DrawCounter() {
}
virtual ~DrawCounter() = default;
/*!
......
......@@ -86,8 +86,7 @@ public:
/*!
* \brief The destructor
*/
virtual ~DrawHDiagram() {
}
virtual ~DrawHDiagram() = default;
/*!
......
......@@ -155,8 +155,7 @@ public:
/*!
* \brief The destructor
*/
virtual ~DrawStats() {
}
virtual ~DrawStats() = default;
/*!
......
......@@ -67,8 +67,7 @@ public:
/*!
* \brief The destructor
*/
virtual ~DrawVDiagram() {
}
virtual ~DrawVDiagram() = default;
/*!
......
......@@ -172,8 +172,7 @@ public:
/*!
* \brief The destructor
*/
virtual ~DrawTrace() {
}
virtual ~DrawTrace() = default;
/***********************************
*
......
......@@ -58,8 +58,7 @@ State::State(Date start, Date end, StateType *type, Container *container, Entity
}
State::State() {
}
State::State() = default;
Date State::get_start_time() const {
return _start;
......
......@@ -53,9 +53,7 @@
/* -- */
using namespace std;
StateChange::StateChange() {
}
StateChange::StateChange() = default;
StateChange::StateChange(Date time): _time(time) {
......
......@@ -64,7 +64,7 @@ protected:
public:
virtual ~Value(){};
virtual ~Value() = default;
/*!
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment