Warnings cleanup in BonjourDialog, ConfigWizard, FirmwareDialog,

GLGizmoCut, ImGuiWrapper
This commit is contained in:
Vojtech Kral 2019-06-25 17:23:53 +02:00
parent f7d4a35c3d
commit 4fb904357f
5 changed files with 8 additions and 51 deletions

View file

@ -326,9 +326,9 @@ bool ImGuiWrapper::combo(const wxString& label, const std::vector<std::string>&
int selection_out = -1;
bool res = false;
const char *selection_str = selection < options.size() ? options[selection].c_str() : "";
const char *selection_str = selection < (int)options.size() ? options[selection].c_str() : "";
if (ImGui::BeginCombo("", selection_str)) {
for (int i = 0; i < options.size(); i++) {
for (int i = 0; i < (int)options.size(); i++) {
if (ImGui::Selectable(options[i].c_str(), i == selection)) {
selection_out = i;
}