Skip to content
Snippets Groups Projects
Commit 890fe4a1 authored by Arnaud Billon's avatar Arnaud Billon :speech_balloon:
Browse files

[upgrade] Update Jsoncpp usage

parent f87341cd
No related branches found
No related tags found
1 merge request!260Upgrade PV5.9
......@@ -79,7 +79,8 @@ void lqSaveLidarStateReaction::SaveLidarState(vtkSMProxy * lidarProxy)
lqLidarStateDialog dialog(nullptr, propertiesInfo, "Please select the parameters to save");
if(dialog.exec())
{
Json::StyledStreamWriter writer;
Json::StreamWriterBuilder builder;
const std::unique_ptr<Json::StreamWriter> writer(builder.newStreamWriter());
std::ofstream configFile(StateFile.toStdString());
Json::Value data;
......@@ -118,7 +119,7 @@ void lqSaveLidarStateReaction::SaveLidarState(vtkSMProxy * lidarProxy)
{
QMessageBox::information(nullptr, QObject::tr(""), QObject::tr("Saved json file is empty (no parameter selected)"));
}
writer.write(configFile, data);
writer->write(data, &configFile);
}
}
......
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