Skip to content

Commit

Permalink
VectorVis: linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfalk committed Feb 6, 2025
1 parent 042bbb7 commit 2be4a70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class IVW_MODULE_INTEGRALLINEFILTERING_API IntegralLinesToDataFrame : public Pro
->getEditableRAMRepresentation()
->getDataContainer());
}
funcs.push_back([=, this](const IntegralLine& line) {
funcs.push_back([&](const IntegralLine& line) {
auto& vec = line.getMetaData<T>(Property::getDisplayName());
std::vector<float> values;
std::transform(vec.begin() + 1, vec.end() - 1, std::back_inserter(values),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ void IntegralLinesToDataFrame::MetaDataSettings::initFunctions(

if (c == 1) { // scalars
ram->dispatch<void, dispatching::filter::Scalars>(
[=, this, &funcs, df = &dataFrame](auto ramT) {
[this, &funcs, df = &dataFrame, &percentiles, &name](auto ramT) {
using T = typename util::PrecisionValueType<decltype(ramT)>;
createFunction<T>(funcs, *df, percentiles, name,
[=](const T& v) -> float { return static_cast<float>(v); });
[](const T& v) -> float { return static_cast<float>(v); });
});

} else { // vectors
Expand Down

0 comments on commit 2be4a70

Please sign in to comment.