Move some "char *"to "const char *", and avoid unnecessary c_str(). (PR #973)

This commit is contained in:
Andrea
2021-07-25 11:55:25 +01:00
committed by GitHub
parent 71bea52419
commit 4375418506
6 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -2057,7 +2057,7 @@ bool Disk2InterfaceCard::LoadSnapshotFloppy(YamlLoadHelper& yamlLoadHelper, UINT
bImageError = (dwAttributes == INVALID_FILE_ATTRIBUTES);
if (!bImageError)
{
if (InsertDisk(unit, filename.c_str(), dwAttributes & FILE_ATTRIBUTE_READONLY, IMAGE_DONT_CREATE) != eIMAGE_ERROR_NONE)
if (InsertDisk(unit, filename, dwAttributes & FILE_ATTRIBUTE_READONLY, IMAGE_DONT_CREATE) != eIMAGE_ERROR_NONE)
bImageError = true;
// InsertDisk() zeros m_floppyDrive[unit], then sets up: