summaryrefslogtreecommitdiff
path: root/src/fileio_func.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-06 21:11:50 +0100
committerMichael Lutz <michi@icosahedron.de>2020-12-27 13:19:25 +0100
commitb408fe77f792650ef569f9852165759f960fd52f (patch)
tree6d1f0a134da31bd1d53dee052721d78955d688e6 /src/fileio_func.h
parent358056ec428d1938b8c9219a60c6fb400115f152 (diff)
downloadopenttd-b408fe77f792650ef569f9852165759f960fd52f.tar.xz
Codechange: Use std::string in file scanners.
Diffstat (limited to 'src/fileio_func.h')
-rw-r--r--src/fileio_func.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileio_func.h b/src/fileio_func.h
index 014050b4b..019573906 100644
--- a/src/fileio_func.h
+++ b/src/fileio_func.h
@@ -74,7 +74,7 @@ public:
* @param tar_filename the name of the tar file the file is read from.
* @return true if the file is added.
*/
- virtual bool AddFile(const char *filename, size_t basepath_length, const char *tar_filename) = 0;
+ virtual bool AddFile(const std::string &filename, size_t basepath_length, const std::string &tar_filename) = 0;
};
/** Helper for scanning for files with tar as extension */
@@ -92,9 +92,9 @@ public:
ALL = BASESET | NEWGRF | AI | SCENARIO | GAME, ///< Scan for everything.
};
- bool AddFile(const char *filename, size_t basepath_length, const char *tar_filename = nullptr) override;
+ bool AddFile(const std::string &filename, size_t basepath_length, const std::string &tar_filename = nullptr) override;
- bool AddFile(Subdirectory sd, const char *filename);
+ bool AddFile(Subdirectory sd, const std::string &filename);
/** Do the scan for Tars. */
static uint DoScan(TarScanner::Mode mode);