mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove superfluous pointer null checks
This commit is contained in:
parent
7bfd53ba58
commit
5cc8ad946e
10 changed files with 20 additions and 46 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue