From 8f7785771b9e02b1a1daf7a252550d78ea93053d Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sat, 17 Jun 2017 19:11:28 +0200 Subject: Cpp11 initializers 2 (#5999) * C++11 patchset 10: continue cleanup on constructors * Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop) * More classes cleanup * More classes cleanup + change NULL tests to boolean tests --- src/guiTable.cpp | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'src/guiTable.cpp') diff --git a/src/guiTable.cpp b/src/guiTable.cpp index d223e3069..44da4aa7b 100644 --- a/src/guiTable.cpp +++ b/src/guiTable.cpp @@ -47,22 +47,7 @@ GUITable::GUITable(gui::IGUIEnvironment *env, ISimpleTextureSource *tsrc ): gui::IGUIElement(gui::EGUIET_ELEMENT, env, parent, id, rectangle), - m_tsrc(tsrc), - m_is_textlist(false), - m_has_tree_column(false), - m_selected(-1), - m_sel_column(0), - m_sel_doubleclick(false), - m_keynav_time(0), - m_keynav_buffer(L""), - m_border(true), - m_color(255, 255, 255, 255), - m_background(255, 0, 0, 0), - m_highlight(255, 70, 100, 50), - m_highlight_text(255, 255, 255, 255), - m_rowheight(1), - m_font(NULL), - m_scrollbar(NULL) + m_tsrc(tsrc) { assert(tsrc != NULL); @@ -109,7 +94,7 @@ GUITable::~GUITable() if (m_font) m_font->drop(); - + m_scrollbar->remove(); } -- cgit v1.2.3