Excessive .c_str() removed
This commit is contained in:
parent
0afbdadea7
commit
29d5769060
@ -232,7 +232,7 @@ wxETWListCtrl::wxETWListCtrl(wxWindow *parent, wxWindowID id, const wxPoint& pos
|
|||||||
wxLogError(_("Access denied creating event session: you need administrative privileges (Run As Administrator) or be a member of Performance Log Users group to start event tracing session."));
|
wxLogError(_("Access denied creating event session: you need administrative privileges (Run As Administrator) or be a member of Performance Log Users group to start event tracing session."));
|
||||||
return;
|
return;
|
||||||
} else if (ulResult == ERROR_ALREADY_EXISTS) {
|
} else if (ulResult == ERROR_ALREADY_EXISTS) {
|
||||||
wxLogDebug(_("The %s event session already exists."), name.c_str());
|
wxLogDebug(_("The %s event session already exists."), name);
|
||||||
// Do not despair... Retry with a new session name and ID.
|
// Do not despair... Retry with a new session name and ID.
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
@ -711,7 +711,7 @@ void wxPersistentETWListCtrl::Save() const
|
|||||||
col.SetMask(wxLIST_MASK_TEXT | wxLIST_MASK_WIDTH);
|
col.SetMask(wxLIST_MASK_TEXT | wxLIST_MASK_WIDTH);
|
||||||
for (int i = 0, n = wnd->GetColumnCount(); i < n; i++) {
|
for (int i = 0, n = wnd->GetColumnCount(); i < n; i++) {
|
||||||
wnd->GetColumn(i, col);
|
wnd->GetColumn(i, col);
|
||||||
SaveValue(wxString::Format(wxT("Column%sWidth"), col.GetText().c_str()), col.GetWidth());
|
SaveValue(wxString::Format(wxT("Column%sWidth"), col.GetText()), col.GetWidth());
|
||||||
}
|
}
|
||||||
|
|
||||||
SaveValue(wxT("ScrollAuto"), wnd->m_scroll_auto);
|
SaveValue(wxT("ScrollAuto"), wnd->m_scroll_auto);
|
||||||
@ -736,7 +736,7 @@ bool wxPersistentETWListCtrl::Restore()
|
|||||||
wnd->GetColumn(i, col);
|
wnd->GetColumn(i, col);
|
||||||
|
|
||||||
int width;
|
int width;
|
||||||
if (RestoreValue(wxString::Format(wxT("Column%sWidth"), col.GetText().c_str()), &width))
|
if (RestoreValue(wxString::Format(wxT("Column%sWidth"), col.GetText()), &width))
|
||||||
wnd->SetColumnWidth(i, width);
|
wnd->SetColumnWidth(i, width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ void wxTLSServerTrustPanel::OnRootCAAddFile(wxCommandEvent& event)
|
|||||||
for (PCCERT_CONTEXT cert = NULL; (cert = CertEnumCertificatesInStore(cs, cert)) != NULL;)
|
for (PCCERT_CONTEXT cert = NULL; (cert = CertEnumCertificatesInStore(cs, cert)) != NULL;)
|
||||||
AddRootCA(cert);
|
AddRootCA(cert);
|
||||||
} else
|
} else
|
||||||
wxMessageBox(wxString::Format(_("Invalid or unsupported certificate file %s"), paths[i].c_str()), _("Error"), wxOK | wxICON_EXCLAMATION, this);
|
wxMessageBox(wxString::Format(_("Invalid or unsupported certificate file %s"), paths[i]), _("Error"), wxOK | wxICON_EXCLAMATION, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user