Make some global string pointers const, not just the strings.

Minor cleanup.
This commit is contained in:
Henrik Rydgård committed 2023-12-29 14:09:45 +01:00
1 parent f22249cef5
commit e3177ac870
30 files changed
+97 -97

No files matched your search

+1 -1
View File
@@ -1092,7 +1092,7 @@ int SavedataParam::BuildHash(unsigned char *output,
std::string SavedataParam::GetSpaceText(u64 size, bool roundUp)
{
char text[50];
static const char *suffixes[] = {"B", "KB", "MB", "GB"};
static const char * const suffixes[] = {"B", "KB", "MB", "GB"};
for (size_t i = 0; i < ARRAY_SIZE(suffixes); ++i)
{
if (size < 1024)