Fixed GCC 6.3 warnings (indentation only).

This commit is contained in:
Volker Ruppert 2017-08-07 18:18:18 +00:00
parent ca3758423b
commit bd39f8c103

View File

@ -1029,7 +1029,7 @@ int MyFrame::HandleAskParamString(bx_param_string_c *param)
if (ddialog->ShowModal() == wxID_OK) if (ddialog->ShowModal() == wxID_OK)
strncpy(newval, ddialog->GetPath().mb_str(wxConvUTF8), sizeof(newval)); strncpy(newval, ddialog->GetPath().mb_str(wxConvUTF8), sizeof(newval));
newval[sizeof(newval) - 1] = '\0'; newval[sizeof(newval) - 1] = '\0';
dialog = ddialog; // so I can delete it dialog = ddialog; // so I can delete it
} else if (n_opt & param->IS_FILENAME) { } else if (n_opt & param->IS_FILENAME) {
// use file open dialog // use file open dialog
@ -1038,7 +1038,7 @@ int MyFrame::HandleAskParamString(bx_param_string_c *param)
wxFileDialog *fdialog = new wxFileDialog(this, wxString(msg, wxConvUTF8), wxT(""), wxString(param->getptr(), wxConvUTF8), wxT("*.*"), style); wxFileDialog *fdialog = new wxFileDialog(this, wxString(msg, wxConvUTF8), wxT(""), wxString(param->getptr(), wxConvUTF8), wxT("*.*"), style);
if (fdialog->ShowModal() == wxID_OK) if (fdialog->ShowModal() == wxID_OK)
strncpy(newval, fdialog->GetPath().mb_str(wxConvUTF8), sizeof(newval)); strncpy(newval, fdialog->GetPath().mb_str(wxConvUTF8), sizeof(newval));
newval[sizeof(newval) - 1] = '\0'; newval[sizeof(newval) - 1] = '\0';
dialog = fdialog; // so I can delete it dialog = fdialog; // so I can delete it
} else { } else {
// use simple string dialog // use simple string dialog
@ -1046,7 +1046,7 @@ int MyFrame::HandleAskParamString(bx_param_string_c *param)
wxTextEntryDialog *tdialog = new wxTextEntryDialog(this, wxString(msg, wxConvUTF8), wxT("Enter new value"), wxString(param->getptr(), wxConvUTF8), style); wxTextEntryDialog *tdialog = new wxTextEntryDialog(this, wxString(msg, wxConvUTF8), wxT("Enter new value"), wxString(param->getptr(), wxConvUTF8), style);
if (tdialog->ShowModal() == wxID_OK) if (tdialog->ShowModal() == wxID_OK)
strncpy(newval, tdialog->GetValue().mb_str(wxConvUTF8), sizeof(newval)); strncpy(newval, tdialog->GetValue().mb_str(wxConvUTF8), sizeof(newval));
newval[sizeof(newval) - 1] = '\0'; newval[sizeof(newval) - 1] = '\0';
dialog = tdialog; // so I can delete it dialog = tdialog; // so I can delete it
} }
if (strlen(newval) > 0) { if (strlen(newval) > 0) {