代码中所有的 NULL 都用 C23 标准中的 nullptr 替换
This commit is contained in:
@@ -61,7 +61,7 @@ bool hex_color_to_rgba(const char *hex, uint32_t *rgba) {
|
||||
return false;
|
||||
}
|
||||
|
||||
color = strtoul(extended, NULL, 16) & 0xffffffff;
|
||||
color = strtoul(extended, nullptr, 16) & 0xffffffff;
|
||||
*rgba = color;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user