mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Fix returning reference to a temporary. Thanks to Henric Jungheim.
This commit is contained in:
parent
15fe07638e
commit
5c0da4a3af
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user