mirror of
https://github.com/godotengine/godot.git
synced 2026-02-17 16:19:56 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -358,12 +358,12 @@ Error EditorExportPlatform::_save_zip_file(void *p_userdata, const String &p_pat
|
||||
|
||||
zipOpenNewFileInZip(zip,
|
||||
path.utf8().get_data(),
|
||||
NULL,
|
||||
NULL,
|
||||
nullptr,
|
||||
nullptr,
|
||||
0,
|
||||
NULL,
|
||||
nullptr,
|
||||
0,
|
||||
NULL,
|
||||
nullptr,
|
||||
Z_DEFLATED,
|
||||
Z_DEFAULT_COMPRESSION);
|
||||
|
||||
@@ -1079,7 +1079,7 @@ Error EditorExportPlatform::save_zip(const Ref<EditorExportPreset> &p_preset, co
|
||||
|
||||
FileAccess *src_f;
|
||||
zlib_filefunc_def io = zipio_create_io_from_file(&src_f);
|
||||
zipFile zip = zipOpen2(p_path.utf8().get_data(), APPEND_STATUS_CREATE, NULL, &io);
|
||||
zipFile zip = zipOpen2(p_path.utf8().get_data(), APPEND_STATUS_CREATE, nullptr, &io);
|
||||
|
||||
ZipData zd;
|
||||
zd.ep = &ep;
|
||||
@@ -1089,7 +1089,7 @@ Error EditorExportPlatform::save_zip(const Ref<EditorExportPreset> &p_preset, co
|
||||
if (err != OK && err != ERR_SKIP)
|
||||
ERR_PRINT("Failed to export project files");
|
||||
|
||||
zipClose(zip, NULL);
|
||||
zipClose(zip, nullptr);
|
||||
|
||||
return OK;
|
||||
}
|
||||
@@ -1162,7 +1162,7 @@ EditorExportPlatform::EditorExportPlatform() {
|
||||
|
||||
////
|
||||
|
||||
EditorExport *EditorExport::singleton = NULL;
|
||||
EditorExport *EditorExport::singleton = nullptr;
|
||||
|
||||
void EditorExport::_save() {
|
||||
|
||||
@@ -1695,7 +1695,7 @@ void EditorExportPlatformPC::set_fixup_embedded_pck_func(FixUpEmbeddedPckFunc p_
|
||||
EditorExportPlatformPC::EditorExportPlatformPC() {
|
||||
|
||||
chmod_flags = -1;
|
||||
fixup_embedded_pck_func = NULL;
|
||||
fixup_embedded_pck_func = nullptr;
|
||||
}
|
||||
|
||||
///////////////////////
|
||||
|
||||
Reference in New Issue
Block a user