Fix all warnings

This commit is contained in:
2023-09-22 10:45:23 +02:00
parent 8224e97abe
commit d2e5bd36de
25 changed files with 47 additions and 71 deletions

View File

@@ -61,7 +61,6 @@
#include <qwt_plot_canvas.h>
#include <qwt_plot_curve.h>
#include <qwt_plot_histogram.h>
#include <qwt_plot_layout.h>
#include <qwt_plot_magnifier.h>
#include <qwt_plot_panner.h>
#include <qwt_scale_draw.h>
@@ -74,6 +73,7 @@ TraceFileTab::TraceFileTab(std::string_view traceFilePath,
PythonCaller& pythonCaller,
QWidget* parent) :
QWidget(parent),
traceFilePath(traceFilePath),
ui(new Ui::TraceFileTab),
commentModel(new CommentModel(this)),
navigator(new TraceNavigator(traceFilePath.data(), commentModel, this)),
@@ -83,9 +83,8 @@ TraceFileTab::TraceFileTab(std::string_view traceFilePath,
selectedRowsModel(new SelectedTracePlotLineModel(navigator->GeneralTraceInfo(), this)),
tracePlotLineDataSource(new TracePlotLineDataSource(selectedRowsModel, this)),
depInfosView(new DependencyInfosModel(navigator->TraceFile(), this)),
savingChangesToDB(false),
pythonCaller(pythonCaller),
traceFilePath(traceFilePath)
savingChangesToDB(false)
{
ui->setupUi(this);
@@ -101,7 +100,7 @@ TraceFileTab::TraceFileTab(std::string_view traceFilePath,
ui->depInfosView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
setUpTraceSelector();
initNavigatorAndItsDependentWidgets(traceFilePath.data());
initNavigatorAndItsDependentWidgets();
setUpFileWatcher(traceFilePath.data());
setUpTraceplotScrollbar();
setUpCommentView();
@@ -181,7 +180,7 @@ void TraceFileTab::setUpTraceplotScrollbar()
SLOT(verticalScrollbarChanged(int)));
}
void TraceFileTab::initNavigatorAndItsDependentWidgets(QString path)
void TraceFileTab::initNavigatorAndItsDependentWidgets()
{
ui->traceplot->init(navigator, ui->traceplotScrollbar, tracePlotLineDataSource, commentModel);
@@ -567,10 +566,10 @@ void TraceFileTab::on_startPowerAnalysis_clicked()
ui->bandwidthPlot->replot();
// Buffer analysis:
sql = "select max(BufferNumber) from BufferDepth;";
query.exec(sql);
query.next();
unsigned int numberOfBuffers = query.value(0).toUInt();
// sql = "select max(BufferNumber) from BufferDepth;";
// query.exec(sql);
// query.next();
// unsigned int numberOfBuffers = query.value(0).toUInt();
sql = "select MaxBufferDepth from GeneralInfo;";
query.exec(sql);