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