summaryrefslogtreecommitdiffstats
path: root/editor/find_in_files.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-16 21:24:53 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-16 21:24:53 +0200
commitcdef53df1ed3f37cb77a69df4530bc766f2f1617 (patch)
treec55e2705e26eab60501e3d3499f6676975f5c5de /editor/find_in_files.cpp
parent691eecd9b61994f0086a9aedfc5e5f058304aadf (diff)
parent75ee58fd0476360c67375cf403f06644a0aa117e (diff)
downloadredot-engine-cdef53df1ed3f37cb77a69df4530bc766f2f1617.tar.gz
Merge pull request #81705 from AThousandShips/null_check_editor
[Editor] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'editor/find_in_files.cpp')
-rw-r--r--editor/find_in_files.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/find_in_files.cpp b/editor/find_in_files.cpp
index 3e580e5f08..5506f4a6bc 100644
--- a/editor/find_in_files.cpp
+++ b/editor/find_in_files.cpp
@@ -501,8 +501,8 @@ void FindInFilesDialog::custom_action(const String &p_action) {
}
void FindInFilesDialog::_on_search_text_modified(String text) {
- ERR_FAIL_COND(!_find_button);
- ERR_FAIL_COND(!_replace_button);
+ ERR_FAIL_NULL(_find_button);
+ ERR_FAIL_NULL(_replace_button);
_find_button->set_disabled(get_search_text().is_empty());
_replace_button->set_disabled(get_search_text().is_empty());