Skip to content

Commit

Permalink
fix : Qt parent=0 -> nullptr & const OemsMesh::sort()
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslepoix committed Dec 9, 2024
1 parent 9a2ebd3 commit df19c3e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/mainwindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private slots:
void on_rb_export_whole_toggled(bool const is_checked);

public:
MainWindow(Data& _data, std::string const& gui_theme, QWidget* parent=0);
MainWindow(Data& _data, std::string const& gui_theme, QWidget* parent=nullptr);
~MainWindow()=default;
};

Expand Down
2 changes: 1 addition & 1 deletion src/oemsmesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ OemsMesh::OemsMesh(vector<shared_ptr<Element>> const& elements, bool const _sort

// Sort no high_res lines and put high_res ones at the end.
//******************************************************************************
void OemsMesh::sort(vector<OemsLine>& a) {
void OemsMesh::sort(vector<OemsLine>& a) const {
vector<OemsLine> tmp;
for(OemsLine& it : a) {
if(!it.high_res) {
Expand Down
2 changes: 1 addition & 1 deletion src/oemsmesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//******************************************************************************
class OemsMesh {
private:
void sort(std::vector<OemsLine>& a);
void sort(std::vector<OemsLine>& a) const;

public:
std::vector<OemsLine> x;
Expand Down
2 changes: 1 addition & 1 deletion src/preview.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public :
Color via;
};

explicit Preview(QWidget* parent=0);
explicit Preview(QWidget* parent=nullptr);
~Preview()=default;
void set(std::vector<std::shared_ptr<Element>> const& all_elements, std::array<long double, 4> const& extrem_pos);
void resetView();
Expand Down

0 comments on commit df19c3e

Please sign in to comment.