summaryrefslogtreecommitdiffstats
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorJakob Bouchard <24767889+jakobbouchard@users.noreply.github.com>2022-02-16 09:17:55 -0500
committerJakob Bouchard <24767889+jakobbouchard@users.noreply.github.com>2022-02-16 13:03:05 -0500
commit6553f5c242865f9aadbe2fdab6db6876c44ac472 (patch)
treedbd6922a056a26a57fe0b62551bbfabed512fd99 /editor/property_editor.cpp
parent98b97d34df7f3ab2cafc3847358c231c3d357b40 (diff)
downloadredot-engine-6553f5c242865f9aadbe2fdab6db6876c44ac472.tar.gz
Convert _notification methods to switch - Chunk C
Diffstat (limited to 'editor/property_editor.cpp')
-rw-r--r--editor/property_editor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index 40f7b86ffc..cd65ee7ae6 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -94,8 +94,10 @@ Ref<Resource> EditorResourceConversionPlugin::convert(const Ref<Resource> &p_res
}
void CustomPropertyEditor::_notification(int p_what) {
- if (p_what == NOTIFICATION_WM_CLOSE_REQUEST) {
- hide();
+ switch (p_what) {
+ case NOTIFICATION_WM_CLOSE_REQUEST: {
+ hide();
+ } break;
}
}