Skip to content
Snippets Groups Projects
Commit 5f81c4cb authored by MelanieCarriere's avatar MelanieCarriere Committed by MelanieCarriere
Browse files

[Fix] fix windows compilation of lqLoadLidarStateReaction

With MSVC : a double[size] can not be instantiate with a non constant size.
parent a47d43f8
No related branches found
No related tags found
1 merge request!138[Fix] fix windows compilation of lqLoadLidarStateReaction
Pipeline #198353 failed
Pipeline: LidarView

#198354

    ...@@ -218,12 +218,12 @@ void lqLoadLidarStateReaction::UpdateProperty(vtkSMProxy * proxy, ...@@ -218,12 +218,12 @@ void lqLoadLidarStateReaction::UpdateProperty(vtkSMProxy * proxy,
    { {
    std::cout << "Values to applied and base property does not have the same size" << std::endl; std::cout << "Values to applied and base property does not have the same size" << std::endl;
    } }
    double d[values.size()]; std::vector<double> d;
    for(unsigned int j = 0; j < values.size(); j++) for(unsigned int j = 0; j < values.size(); j++)
    { {
    d[j] = std::stod(values[j]); d.push_back(std::stod(values[j]));
    } }
    vtkSMPropertyHelper(prop).Set(d, values.size()); vtkSMPropertyHelper(prop).Set(d.data(), d.size());
    } }
    else else
    { {
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment