Skip to content

Commit 7442d00

Browse files
committed
const char *
1 parent b3e23c3 commit 7442d00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/d/d_font_manager.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
static dFontMng_c l_dFontMng_obj[3];
66

7-
static char *systemFonts[] = {"normal_00.brfnt", "special_00.brfnt", "picture_00.brfnt"};
8-
static char *fonts[] = {"normal_00.brfnt", "normal_01.brfnt", "special_00.brfnt", "special_01.brfnt",
7+
static const char *systemFonts[] = {"normal_00.brfnt", "special_00.brfnt", "picture_00.brfnt"};
8+
static const char *fonts[] = {"normal_00.brfnt", "normal_01.brfnt", "special_00.brfnt", "special_01.brfnt",
99
"picture_00.brfnt"};
1010

1111
// TODO What's up with these?
@@ -29,7 +29,7 @@ nw4r::ut::ResFont *dFontMng_c::getFont(u8 type) {
2929
return &l_dFontMng_obj[index].mFont;
3030
}
3131

32-
char *getFontName(u8 type) {
32+
const char *getFontName(u8 type) {
3333
return fonts[type];
3434
}
3535

0 commit comments

Comments
 (0)