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