diff options
author | PeterN <peter1138@openttd.org> | 2021-04-29 22:46:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 22:46:42 +0100 |
commit | f018471b36fe1ffaedf98430b4156ad369e26c66 (patch) | |
tree | e3636601a3463b81c6b14dc56dd344bb51d242fb /src/os/windows | |
parent | 9a8756d7ed6fdde20bad9be8c8b8bc8fda0170f9 (diff) | |
download | openttd-f018471b36fe1ffaedf98430b4156ad369e26c66.tar.xz |
Cleanup: Remove old FiosList helper methods. (#9139)
Diffstat (limited to 'src/os/windows')
-rw-r--r-- | src/os/windows/win32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp index ddcfd4866..eee81be40 100644 --- a/src/os/windows/win32.cpp +++ b/src/os/windows/win32.cpp @@ -209,7 +209,7 @@ void FiosGetDrives(FileList &file_list) GetLogicalDriveStrings(lengthof(drives), drives); for (s = drives; *s != '\0';) { - FiosItem *fios = file_list.Append(); + FiosItem *fios = &file_list.emplace_back(); fios->type = FIOS_TYPE_DRIVE; fios->mtime = 0; seprintf(fios->name, lastof(fios->name), "%c:", s[0] & 0xFF); |