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

+2 -2
View File
@@ -263,7 +263,7 @@ const char *MIPSDebugInterface::GetName()
}
std::string MIPSDebugInterface::GetRegName(int cat, int index) {
static const char *regName[32] = {
static const char * const regName[32] = {
"zero", "at", "v0", "v1",
"a0", "a1", "a2", "a3",
"t0", "t1", "t2", "t3",
@@ -273,7 +273,7 @@ std::string MIPSDebugInterface::GetRegName(int cat, int index) {
"t8", "t9", "k0", "k1",
"gp", "sp", "fp", "ra"
};
static const char *fpRegName[32] = {
static const char * const fpRegName[32] = {
"f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7",
"f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15",
"f16", "f16", "f18", "f19", "f20", "f21", "f22", "f23",