Codechange: Remove c_str, if std::string_view is already accepted.

This commit is contained in:
frosch
2025-04-30 12:38:02 +02:00
committed by frosch
parent b564fbb5e6
commit 36ce1f890a
7 changed files with 10 additions and 10 deletions

View File

@@ -1186,7 +1186,7 @@ void SwitchToMode(SwitchMode new_mode)
break;
case SM_SAVE_HEIGHTMAP: // Save heightmap.
MakeHeightmapScreenshot(_file_to_saveload.name.c_str());
MakeHeightmapScreenshot(_file_to_saveload.name);
CloseWindowById(WC_SAVELOAD, 0);
break;