summaryrefslogtreecommitdiff
path: root/src/ini.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-06 21:11:49 +0100
committerMichael Lutz <michi@icosahedron.de>2020-12-27 13:19:25 +0100
commit358056ec428d1938b8c9219a60c6fb400115f152 (patch)
tree428afbedb78158cd174f3c003c70ce3d45d1bea9 /src/ini.cpp
parent024a3f62593fd783285c5ff09b8c85ee1fc34e2d (diff)
downloadopenttd-358056ec428d1938b8c9219a60c6fb400115f152.tar.xz
Codechange: Keep filenames of loaded Fio files in std::strings.
Diffstat (limited to 'src/ini.cpp')
-rw-r--r--src/ini.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ini.cpp b/src/ini.cpp
index 036ced668..e70cc268a 100644
--- a/src/ini.cpp
+++ b/src/ini.cpp
@@ -125,7 +125,7 @@ bool IniFile::SaveToDisk(const std::string &filename)
return true;
}
-/* virtual */ FILE *IniFile::OpenFile(const char *filename, Subdirectory subdir, size_t *size)
+/* virtual */ FILE *IniFile::OpenFile(const std::string &filename, Subdirectory subdir, size_t *size)
{
/* Open the text file in binary mode to prevent end-of-line translations
* done by ftell() and friends, as defined by K&R. */