CExportGameDialog: Mark search string as constexpr

This commit is contained in:
Lioncash 2020-07-03 22:30:21 -04:00
parent 1f1d48fc40
commit dbd2912ee5
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ float CExportGameDialog::FindBuildVersion()
uint32 DolSize = (uint32) mpDisc->getDataPartition()->getDOLSize(); uint32 DolSize = (uint32) mpDisc->getDataPartition()->getDOLSize();
// Find build info string // Find build info string
const char *pkSearchText = "!#$MetroidBuildInfo!#$"; constexpr char pkSearchText[] = "!#$MetroidBuildInfo!#$";
const int SearchTextSize = strlen(pkSearchText); const int SearchTextSize = strlen(pkSearchText);
for (uint32 SearchIdx = 0; SearchIdx < DolSize - SearchTextSize + 1; SearchIdx++) for (uint32 SearchIdx = 0; SearchIdx < DolSize - SearchTextSize + 1; SearchIdx++)