We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_SliderData is memset zero twice in Gadget_List_Box_Create_Scroll_Bar. It is not used between both invocations. The second memset can be removed.
_SliderData
Gadget_List_Box_Create_Scroll_Bar
void Gadget_List_Box_Create_Scroll_Bar(GameWindow *list_box) { _ListboxData *data = static_cast<_ListboxData *>(list_box->Win_Get_User_Data()); WinInstanceData instance_data; _SliderData slider_data; memset(&slider_data, 0, sizeof(slider_data)); int status = list_box->Win_Get_Status(); bool has_text = false; ... memset(&slider_data, 0, sizeof(slider_data)); data->m_slider = g_theWindowManager->Go_Go_Gadget_Slider(list_box, status | WIN_STATUS_ENABLED | WIN_STATUS_ACTIVE, width - i3 - 2, top + i4 + 3, i3, bottom - 2 * i4 - 6, &instance_data, &slider_data, nullptr, true); data->m_scrollBar = true; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
_SliderData
is memset zero twice inGadget_List_Box_Create_Scroll_Bar
. It is not used between both invocations. The second memset can be removed.The text was updated successfully, but these errors were encountered: