diff options
author | Michael Lutz <michi@icosahedron.de> | 2020-12-06 21:11:49 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-12-27 13:19:25 +0100 |
commit | 358056ec428d1938b8c9219a60c6fb400115f152 (patch) | |
tree | 428afbedb78158cd174f3c003c70ce3d45d1bea9 /src/ini_type.h | |
parent | 024a3f62593fd783285c5ff09b8c85ee1fc34e2d (diff) | |
download | openttd-358056ec428d1938b8c9219a60c6fb400115f152.tar.xz |
Codechange: Keep filenames of loaded Fio files in std::strings.
Diffstat (limited to 'src/ini_type.h')
-rw-r--r-- | src/ini_type.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ini_type.h b/src/ini_type.h index 163717450..160ba7619 100644 --- a/src/ini_type.h +++ b/src/ini_type.h @@ -73,7 +73,7 @@ struct IniLoadFile { * @param[out] size Size of the opened file. * @return File handle of the opened file, or \c nullptr. */ - virtual FILE *OpenFile(const char *filename, Subdirectory subdir, size_t *size) = 0; + virtual FILE *OpenFile(const std::string &filename, Subdirectory subdir, size_t *size) = 0; /** * Report an error about the file contents. @@ -90,7 +90,7 @@ struct IniFile : IniLoadFile { bool SaveToDisk(const std::string &filename); - virtual FILE *OpenFile(const char *filename, Subdirectory subdir, size_t *size); + virtual FILE *OpenFile(const std::string &filename, Subdirectory subdir, size_t *size); virtual void ReportFileError(const char * const pre, const char * const buffer, const char * const post); }; |