aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-10-24 16:22:05 +0200
committerKahrl <kahrl@gmx.net>2014-10-24 21:14:48 +0200
commitb49e5cfc7013cef7e9af79d17e04f7e7e4c377d4 (patch)
tree7b8c98c13f4598dba70f2c30118f8f5b7bebcac7 /src/guiFormSpecMenu.cpp
parent73bf791fe12d4214d29b6b872940ede634651ce8 (diff)
downloadminetest-b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.tar.gz
minetest-b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.tar.bz2
minetest-b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.zip
Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism
Diffstat (limited to 'src/guiFormSpecMenu.cpp')
-rw-r--r--src/guiFormSpecMenu.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index a502c9682..e82ea829c 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -68,12 +68,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
/*
GUIFormSpecMenu
*/
-
GUIFormSpecMenu::GUIFormSpecMenu(irr::IrrlichtDevice* dev,
gui::IGUIElement* parent, s32 id, IMenuManager *menumgr,
InventoryManager *invmgr, IGameDef *gamedef,
ISimpleTextureSource *tsrc, IFormSource* fsrc, TextDest* tdst,
- GUIFormSpecMenu** ext_ptr, Client* client) :
+ Client* client) :
GUIModalMenu(dev->getGUIEnvironment(), parent, id, menumgr),
m_device(dev),
m_invmgr(invmgr),
@@ -89,7 +88,6 @@ GUIFormSpecMenu::GUIFormSpecMenu(irr::IrrlichtDevice* dev,
m_lock(false),
m_form_src(fsrc),
m_text_dst(tdst),
- m_ext_ptr(ext_ptr),
m_font(dev->getGUIEnvironment()->getSkin()->getFont()),
m_formspec_version(0)
#ifdef __ANDROID__
@@ -130,11 +128,6 @@ GUIFormSpecMenu::~GUIFormSpecMenu()
if (m_text_dst != NULL) {
delete m_text_dst;
}
-
- if (m_ext_ptr != NULL) {
- assert(*m_ext_ptr == this);
- *m_ext_ptr = NULL;
- }
}
void GUIFormSpecMenu::removeChildren()