From b3a59fd44d9f8e93a300cae8a833cdb03de99a48 Mon Sep 17 00:00:00 2001 From: Julien STAUB Date: Sat, 17 May 2025 08:34:30 +0200 Subject: [PATCH 1/5] plotpicker warning --- profileplot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profileplot.cpp b/profileplot.cpp index 17d2ed93..121c3d75 100644 --- a/profileplot.cpp +++ b/profileplot.cpp @@ -75,7 +75,7 @@ ProfilePlot::ProfilePlot(QWidget *parent , ContourTools *tools): zoomed = false; m_defocus_mode = false; m_plot = new QwtPlot(this); - profilePlotPicker *picker = new profilePlotPicker(m_plot); + new profilePlotPicker(m_plot); type = 0; QHBoxLayout * l1 = new QHBoxLayout(); QVBoxLayout *v1 = new QVBoxLayout(); From 0266a489c443e14af73f07f041f4f3fb53dc4618 Mon Sep 17 00:00:00 2001 From: Julien STAUB Date: Sat, 17 May 2025 08:45:04 +0200 Subject: [PATCH 2/5] fix warning --- astigstatsdlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astigstatsdlg.cpp b/astigstatsdlg.cpp index d5f2931c..31e4ce1a 100644 --- a/astigstatsdlg.cpp +++ b/astigstatsdlg.cpp @@ -187,7 +187,7 @@ class RunningStat { public: RunningStat() : - m_n(0), m_oldM(NAN), m_oldS(0.), m_min(DBL_MAX), m_max(DBL_MIN) + m_n(0), m_oldM(NAN), m_oldS(0.), m_newS(0.), m_min(DBL_MAX), m_max(DBL_MIN) {} void Push(double x) From 0578090e6d2771e0356a3419d39739a8ee623eef Mon Sep 17 00:00:00 2001 From: Julien Staub Date: Sat, 17 May 2025 09:35:53 +0200 Subject: [PATCH 3/5] memory leak --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index f4db0af9..7efc47eb 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2074,7 +2074,7 @@ void MainWindow::on_actionastig_in_polar_triggered() { surfaceAnalysisTools *saTools = surfaceAnalysisTools::get_Instance(); QList list = saTools->SelectedWaveFronts(); - astigPolargraph * graph = new astigPolargraph( list); + astigPolargraph * graph = new astigPolargraph( list, this); graph->resize(2000,1000); graph->exec(); } From 830138dcf4eb4737df7f457023b12b21442e2e27 Mon Sep 17 00:00:00 2001 From: Julien Staub Date: Sat, 17 May 2025 09:38:41 +0200 Subject: [PATCH 4/5] C++14 as required by armadillo --- DFTFringe.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DFTFringe.pro b/DFTFringe.pro index 5805fee4..cf7ec6e0 100644 --- a/DFTFringe.pro +++ b/DFTFringe.pro @@ -18,7 +18,7 @@ QT += charts concurrent core datavisualization gui multimedia multimediawidgets qtHaveModule(printsupport): QT += printsupport -QMAKE_CXXFLAGS += -std=c++11 +QMAKE_CXXFLAGS += -std=c++14 # disable qDebug() in release CONFIG( release, debug|release ) { From b7e0a357e835531ce839042c8145fb2157de40ad Mon Sep 17 00:00:00 2001 From: Julien Staub Date: Sat, 17 May 2025 09:49:17 +0200 Subject: [PATCH 5/5] one more warning --- percentcorrectiondlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/percentcorrectiondlg.cpp b/percentcorrectiondlg.cpp index 7a581df0..8d6af90c 100644 --- a/percentcorrectiondlg.cpp +++ b/percentcorrectiondlg.cpp @@ -482,7 +482,7 @@ void percentCorrectionDlg::plot(){ if (surfs.length() < 2) { // draw zone rectangles - double width; + double width= 0.; for(int i = 0; i < percent.length(); ++i){ double y = percent[i].y();