Open xezon opened 9 months ago
InGameUI::InGameUI() ... m_placeIcon = new Drawable *[g_theWriteableGlobalData->m_maxLineBuildObjects]; for (int i = 0; i < g_theWriteableGlobalData->m_maxLineBuildObjects; i++) { m_placeIcon[i] = nullptr; }
Can be rewritten as.
m_placeIcon = new Drawable *[g_theWriteableGlobalData->m_maxLineBuildObjects]();
InGameUI::InGameUI() ... m_currentlyPlayingMovie.Clear(); ... for (int i = 0; i < MAX_UI_MESSAGES; i++) { m_uiMessages[i].full_text.Clear(); m_uiMessages[i].display_string = nullptr; m_uiMessages[i].timestamp = 0; m_uiMessages[i].color = 0; }
FloatingTextData::FloatingTextData() ... m_text.Clear();
Clear() in constructors are obsolete.
Clear()
1
Can be rewritten as.
2
Clear()
in constructors are obsolete.