Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Multi-Layer Reprojection
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Multi-Layer Reprojection
Commits
764085a8
Commit
764085a8
authored
4 years ago
by
Lava Block
Browse files
Options
Downloads
Patches
Plain Diff
fix deprecated warning
parent
f2533406
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
liblava/frame/window.cpp
+2
-2
2 additions, 2 deletions
liblava/frame/window.cpp
liblava/util/file.cpp
+1
-1
1 addition, 1 deletion
liblava/util/file.cpp
with
3 additions
and
3 deletions
liblava/frame/window.cpp
+
2
−
2
View file @
764085a8
...
...
@@ -447,7 +447,7 @@ bool lava::load_window_file(window::state& state, name save_name) {
if
(
!
load_file_data
(
_window_file_
,
data
))
return
false
;
auto
j
=
json
::
parse
(
{
data
.
ptr
,
data
.
size
}
);
auto
j
=
json
::
parse
(
data
.
ptr
,
data
.
ptr
+
data
.
size
);
if
(
!
j
.
count
(
save_name
))
return
false
;
...
...
@@ -466,7 +466,7 @@ void lava::save_window_file(window::ref window) {
scope_data
data
;
if
(
load_file_data
(
_window_file_
,
data
))
{
j
=
json
::
parse
(
{
data
.
ptr
,
data
.
size
}
);
j
=
json
::
parse
(
data
.
ptr
,
data
.
ptr
+
data
.
size
);
json
d
;
d
[
index
]
=
state
;
...
...
This diff is collapsed.
Click to expand it.
liblava/util/file.cpp
+
1
−
1
View file @
764085a8
...
...
@@ -318,7 +318,7 @@ namespace lava {
if
(
!
load_file_data
(
path
,
data
))
return
false
;
auto
j
=
json
::
parse
(
{
data
.
ptr
,
data
.
size
}
);
auto
j
=
json
::
parse
(
data
.
ptr
,
data
.
ptr
+
data
.
size
);
for
(
auto
callback
:
callbacks
)
callback
->
on_load
(
j
);
...
...
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