Rename wxWebRequestEvent::GetResponseFileName() to GetDataFile()

This is shorter and doesn't imply that just the name (and not the full
path) is being returned.

Also rename wxWebResponse::GetFileName() to GetDataFile() for the same
reasons and for consistency. And document this previously undocumented
method.
This commit is contained in:
Vadim Zeitlin
2021-01-12 03:34:40 +01:00
parent d0f56b1d04
commit 20a3317839
6 changed files with 24 additions and 17 deletions

View File

@@ -288,7 +288,7 @@ public:
wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
if ( fileDlg.ShowModal() == wxID_OK )
{
if ( !wxRenameFile(evt.GetResponseFileName(), fileDlg.GetPath()) )
if ( !wxRenameFile(evt.GetDataFile(), fileDlg.GetPath()) )
wxLogError("Could not move file");
}