@@ -108,7 +108,7 @@ Interactive::Interactive(QWidget *parent) : QMainWindow(parent),
108108 });
109109 ui->menuView ->addAction (replayAction);
110110
111- connect (ui->slider , &Timeline::valueChanged, this , [this ](const int & newValue) {
111+ connect (ui->slider , &Timeline::valueChanged, this , [this ](int newValue) {
112112 int index = ui->interactiveTab ->currentIndex ();
113113 if (index == 0 ) {
114114 display (newValue);
@@ -371,7 +371,7 @@ Interactive::Interactive(QWidget *parent) : QMainWindow(parent),
371371 });
372372 connect (ui->actionAboutQt , &QAction::triggered, qApp, &QApplication::aboutQt);
373373
374- connect (this , &Interactive::message, this , [this ](QString msg) {
374+ connect (this , &Interactive::message, this , [this ](const QString & msg) {
375375 QMessageBox msgBox;
376376 msgBox.setIcon (QMessageBox::Critical);
377377 msgBox.setText (QStringLiteral (" Error" ));
@@ -912,7 +912,7 @@ void Interactive::previewTracking() {
912912 replay->loadReplay (dir);
913913 replayAction->setChecked (true );
914914 });
915- connect (tracking, &Tracking::forceFinished, this , [this ](QString errorMessage) {
915+ connect (tracking, &Tracking::forceFinished, this , [this ](const QString & errorMessage) {
916916 ui->slider ->setDisabled (false );
917917 ui->previewButton ->setDisabled (false );
918918 ui->trackButton ->setDisabled (false );
@@ -1193,14 +1193,14 @@ void Interactive::level() {
11931193 autolevel->moveToThread (thread);
11941194
11951195 connect (thread, &QThread::started, autolevel, &AutoLevel::level);
1196- connect (autolevel, &AutoLevel::forceFinished, this , [this ](QString errorMessage) {
1196+ connect (autolevel, &AutoLevel::forceFinished, this , [this ](const QString & errorMessage) {
11971197 this ->setEnabled (true );
11981198 emit message (errorMessage);
11991199 });
12001200 connect (autolevel, &AutoLevel::finished, this , [this ]() {
12011201 this ->setEnabled (true );
12021202 });
1203- connect (autolevel, &AutoLevel::levelParametersChanged, this , [this ](QMap<QString, double > levelParameters) {
1203+ connect (autolevel, &AutoLevel::levelParametersChanged, this , [this ](const QMap<QString, double > & levelParameters) {
12041204 ui->maxT ->setValue (levelParameters.value (QStringLiteral (" normAngle" )));
12051205 ui->maxL ->setValue (levelParameters.value (QStringLiteral (" normDist" )));
12061206 ui->normArea ->setValue (levelParameters.value (QStringLiteral (" normArea" )));
@@ -1227,7 +1227,7 @@ void Interactive::level() {
12271227/* *
12281228 * @brief Reads a parameter file, updates parameters.
12291229 */
1230- void Interactive::loadParameters (QString path) {
1230+ void Interactive::loadParameters (const QString & path) {
12311231 QFile parameterFile (path);
12321232 if (parameterFile.open (QIODevice::ReadOnly | QIODevice::Text)) {
12331233 QTextStream in (¶meterFile);
0 commit comments