You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Style: Replaces uses of 0/NULL by nullptr (C++11)
Using clang-tidy's `modernize-use-nullptr`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
This commit is contained in:
@@ -56,23 +56,23 @@ void GIProbeEditorPlugin::make_visible(bool p_visible) {
|
||||
}
|
||||
}
|
||||
|
||||
EditorProgress *GIProbeEditorPlugin::tmp_progress = NULL;
|
||||
EditorProgress *GIProbeEditorPlugin::tmp_progress = nullptr;
|
||||
|
||||
void GIProbeEditorPlugin::bake_func_begin(int p_steps) {
|
||||
ERR_FAIL_COND(tmp_progress != NULL);
|
||||
ERR_FAIL_COND(tmp_progress != nullptr);
|
||||
|
||||
tmp_progress = memnew(EditorProgress("bake_gi", TTR("Bake GI Probe"), p_steps));
|
||||
}
|
||||
|
||||
void GIProbeEditorPlugin::bake_func_step(int p_step, const String &p_description) {
|
||||
ERR_FAIL_COND(tmp_progress == NULL);
|
||||
ERR_FAIL_COND(tmp_progress == nullptr);
|
||||
tmp_progress->step(p_description, p_step, false);
|
||||
}
|
||||
|
||||
void GIProbeEditorPlugin::bake_func_end() {
|
||||
ERR_FAIL_COND(tmp_progress == NULL);
|
||||
ERR_FAIL_COND(tmp_progress == nullptr);
|
||||
memdelete(tmp_progress);
|
||||
tmp_progress = NULL;
|
||||
tmp_progress = nullptr;
|
||||
}
|
||||
|
||||
void GIProbeEditorPlugin::_bind_methods() {
|
||||
@@ -87,7 +87,7 @@ GIProbeEditorPlugin::GIProbeEditorPlugin(EditorNode *p_node) {
|
||||
bake->hide();
|
||||
bake->connect("pressed", this, "_bake");
|
||||
add_control_to_container(CONTAINER_SPATIAL_EDITOR_MENU, bake);
|
||||
gi_probe = NULL;
|
||||
gi_probe = nullptr;
|
||||
|
||||
GIProbe::bake_begin_function = bake_func_begin;
|
||||
GIProbe::bake_step_function = bake_func_step;
|
||||
|
||||
Reference in New Issue
Block a user