mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 07:31:19 +01:00
Fix returning reference to a temporary. Thanks to Henric Jungheim.
This commit is contained in:
@@ -89,7 +89,8 @@ const wxString &FileHistory::GetHistoryFile(size_t i) const
|
||||
return mHistory[i];
|
||||
}
|
||||
|
||||
return wxEmptyString;
|
||||
static const wxString empty;
|
||||
return empty;
|
||||
}
|
||||
|
||||
size_t FileHistory::GetCount()
|
||||
|
||||
Reference in New Issue
Block a user