summaryrefslogtreecommitdiff
path: root/src/newgrf_profiling.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-06 21:11:47 +0100
committerMichael Lutz <michi@icosahedron.de>2020-12-27 13:19:25 +0100
commit5cbb2da79434ec002831bd72b2c81f9dcd469601 (patch)
treea1b8fea79609c446e36a38796269dad6a1db45fd /src/newgrf_profiling.cpp
parent65f65ad2ad8f029b99ef60e931b6d86952777610 (diff)
downloadopenttd-5cbb2da79434ec002831bd72b2c81f9dcd469601.tar.xz
Codechange: Even more std::string usage in file IO.
Diffstat (limited to 'src/newgrf_profiling.cpp')
-rw-r--r--src/newgrf_profiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_profiling.cpp b/src/newgrf_profiling.cpp
index 17f32384d..b7848fa67 100644
--- a/src/newgrf_profiling.cpp
+++ b/src/newgrf_profiling.cpp
@@ -102,7 +102,7 @@ uint32 NewGRFProfiler::Finish()
std::string filename = this->GetOutputFilename();
IConsolePrintF(CC_DEBUG, "Finished profile of NewGRF [%08X], writing %u events to %s", BSWAP32(this->grffile->grfid), (uint)this->calls.size(), filename.c_str());
- FILE *f = FioFOpenFile(filename.c_str(), "wt", Subdirectory::NO_DIRECTORY);
+ FILE *f = FioFOpenFile(filename, "wt", Subdirectory::NO_DIRECTORY);
FileCloser fcloser(f);
uint32 total_microseconds = 0;