Skip to content

Commit

Permalink
[CORRECTIVE] Fixed Linux compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Esko Pekkarinen committed Jun 29, 2018
1 parent 533957f commit 8241c35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Plugins/common/HDLParser/MetaComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ void MetaComponent::sortParameters(QSharedPointer<QList<QSharedPointer<Parameter

// The start position for the second pass.
auto startPosition = std::find_if(sortParameters->begin(), sortParameters->end(),
[&currentValue](auto referenced) { return currentValue.contains(referenced->getValueId()); });
[&currentValue](QSharedPointer<Parameter> referenced) { return currentValue.contains(
referenced->getValueId()); });

// If none found, next search starts from the beginning.
if (startPosition == sortParameters->end())
Expand All @@ -175,7 +176,8 @@ void MetaComponent::sortParameters(QSharedPointer<QList<QSharedPointer<Parameter
}

auto firstReferencing = std::find_if(startPosition, sortParameters->end(),
[&currentValue](auto referencing) { return referencing->getValue().contains(currentValue); });
[&currentValue](QSharedPointer<Parameter> referencing){ return referencing->getValue().contains(
currentValue); });

// Move to end of the list, unless referencing parameter is found.
int target = sortParameters->size();
Expand Down

0 comments on commit 8241c35

Please sign in to comment.