Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LidarView-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LidarView
LidarView-Core
Commits
890fe4a1
Commit
890fe4a1
authored
3 years ago
by
Arnaud Billon
Browse files
Options
Downloads
Patches
Plain Diff
[upgrade] Update Jsoncpp usage
parent
f87341cd
No related branches found
No related tags found
1 merge request
!260
Upgrade PV5.9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ApplicationComponents/SaveAndLoadLidarState/lqSaveLidarStateReaction.cxx
+3
-2
3 additions, 2 deletions
...onents/SaveAndLoadLidarState/lqSaveLidarStateReaction.cxx
with
3 additions
and
2 deletions
ApplicationComponents/SaveAndLoadLidarState/lqSaveLidarStateReaction.cxx
+
3
−
2
View file @
890fe4a1
...
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment