From 8e7ea0f45f37f5c724a1137dde19c5cf31c5e247 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 5 Jun 2017 18:25:36 +0300 Subject: [PATCH] Cppcheck warning. (grafted from 5fb12906763ccf0b28ee1e2037196556fb9297eb) --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index f475cc58d..f0b290678 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -4502,8 +4502,8 @@ QString MainWindow::CheckPathToMeasurements(const QString &patternPath, const QS const QString filter = tr("Individual measurements") + QLatin1String(" (*.vit);;") + tr("Multisize measurements") + QLatin1String(" (*.vst)"); //Use standard path to individual measurements - QString path = qApp->ValentinaSettings()->GetPathIndividualMeasurements(); - path = VCommonSettings::PrepareStandardTables(VCommonSettings::GetDefPathStandardMeasurements()); + const QString path = qApp->ValentinaSettings()->GetPathIndividualMeasurements(); + VCommonSettings::PrepareStandardTables(VCommonSettings::GetDefPathStandardMeasurements()); bool usedNotExistedDir = false; QDir directory(path);