rename none to null
This commit is contained in:
@@ -11,9 +11,9 @@ TaskList :: struct {
|
||||
|
||||
task_list_init func(allocator mem.Allocator) TaskList {
|
||||
return TaskList {
|
||||
ids = none,
|
||||
priorities = none,
|
||||
durations = none,
|
||||
ids = null,
|
||||
priorities = null,
|
||||
durations = null,
|
||||
len = 0,
|
||||
capacity = 0,
|
||||
allocator = allocator,
|
||||
@@ -27,7 +27,7 @@ alloc_i32s func(allocator mem.Allocator, count usize) ?[]mut i32 {
|
||||
failed = true
|
||||
yield (&fallback).ptr[..0]
|
||||
}
|
||||
if (failed) return none
|
||||
if (failed) return null
|
||||
return values
|
||||
}
|
||||
|
||||
@@ -144,9 +144,9 @@ task_list_deinit func(list @mut TaskList) void {
|
||||
free_i32s(list.allocator, list.ids)
|
||||
free_i32s(list.allocator, list.priorities)
|
||||
free_i32s(list.allocator, list.durations)
|
||||
list.ids = none
|
||||
list.priorities = none
|
||||
list.durations = none
|
||||
list.ids = null
|
||||
list.priorities = null
|
||||
list.durations = null
|
||||
list.len = 0
|
||||
list.capacity = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user