From 5cc8ad946efb3612eb6ea8655780b29fe4c62e19 Mon Sep 17 00:00:00 2001 From: QrchackOfficial Date: Mon, 5 Jun 2017 01:52:55 +0200 Subject: Remove superfluous pointer null checks --- src/guiFormSpecMenu.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/guiFormSpecMenu.h') diff --git a/src/guiFormSpecMenu.h b/src/guiFormSpecMenu.h index bf0b4f356..d08bb4ab5 100644 --- a/src/guiFormSpecMenu.h +++ b/src/guiFormSpecMenu.h @@ -310,18 +310,14 @@ public: // form_src is deleted by this GUIFormSpecMenu void setFormSource(IFormSource *form_src) { - if (m_form_src != NULL) { - delete m_form_src; - } + delete m_form_src; m_form_src = form_src; } // text_dst is deleted by this GUIFormSpecMenu void setTextDest(TextDest *text_dst) { - if (m_text_dst != NULL) { - delete m_text_dst; - } + delete m_text_dst; m_text_dst = text_dst; } -- cgit v1.2.3