Skip to content

Commit 3a47559

Browse files
committed
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>
1 parent 8e09077 commit 3a47559

3 files changed

Lines changed: 379 additions & 421 deletions

File tree

src/client/inputhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ bool MyEventReceiver::OnEvent(const SEvent &event)
104104
if (isMenuActive()) {
105105
#ifdef HAVE_TOUCHSCREENGUI
106106
if (m_touchscreengui) {
107-
m_touchscreengui->Toggle(false);
107+
m_touchscreengui->setVisible(false);
108108
}
109109
#endif
110110
return g_menumgr.preprocessEvent(event);

0 commit comments

Comments
 (0)