mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix some memory leaks and code style issues
Maximum line length is 95 characters. Some members' name are changed. Struct initialisations use brace syntax; eliminating the usage of the memset function. Iterations use for-each-loop instead of while-loop+iterator. char * -> std::string button_info * -> std::shared_ptr<button_info>
This commit is contained in:
parent
8e09077de8
commit
3a47559e86
3 changed files with 380 additions and 422 deletions
|
@ -104,7 +104,7 @@ bool MyEventReceiver::OnEvent(const SEvent &event)
|
|||
if (isMenuActive()) {
|
||||
#ifdef HAVE_TOUCHSCREENGUI
|
||||
if (m_touchscreengui) {
|
||||
m_touchscreengui->Toggle(false);
|
||||
m_touchscreengui->setVisible(false);
|
||||
}
|
||||
#endif
|
||||
return g_menumgr.preprocessEvent(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue