Fix compatibility with old compilers.

This commit is contained in:
Roman Telezhynskyi 2023-11-15 08:11:08 +02:00
parent e9e439e9cb
commit 41d2ad7afa

View File

@ -1007,7 +1007,8 @@ auto MApplication::StartWithMeasurementFiles(QCommandLineParser &parser) -> bool
ParseUnitsOption(parser, unit, flagUnits);
return std::all_of(args.begin(), args.end(),
[&](const auto &arg)
[this, flagDimensionA, flagDimensionB, flagDimensionC, flagUnits, dimensionAValue,
dimensionBValue, dimensionCValue, unit](const auto &arg)
{
NewMainTapeWindow();
if (not MainTapeWindow()->LoadFile(arg))
@ -1046,7 +1047,7 @@ auto MApplication::StartWithKnownMeasurementFiles(QCommandLineParser &parser) ->
const QStringList args = parser.positionalArguments();
return std::all_of(args.begin(), args.end(),
[&](const auto &arg)
[this, args](const auto &arg)
{
NewMainKMWindow();
if (not MainKMWindow()->LoadFile(arg))