1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vfmt: voidptr(0) => unsafe { nil } (p.1)

This commit is contained in:
Alexander Medvednikov
2022-07-21 20:45:57 +03:00
parent be9f8cc777
commit caa0c2f153
17 changed files with 153 additions and 123 deletions

View File

@ -28,7 +28,7 @@ fn main() {
pass_action.colors[0] = color_action
state := &AppState{
pass_action: pass_action
font_context: voidptr(0) // &fontstash.Context(0)
font_context: unsafe { nil } // &fontstash.Context(0)
}
title := 'V Metal/GL Text Rendering'
desc := sapp.Desc{

View File

@ -76,7 +76,7 @@ fn main() {
pass_action.colors[0] = color_action
state := &AppState{
pass_action: pass_action
fons: voidptr(0) // &fontstash.Context(0)
fons: unsafe { nil } // &fontstash.Context(0)
}
title := 'V Metal/GL Text Rendering'
desc := sapp.Desc{