変愚蛮怒のメインリポジトリです
Revision | 07ca16fcb39fe090b361e0c955cb86d2b1ca5139 (tree) |
---|---|
Time | 2019-01-14 12:29:18 |
Author | Deskull <deskull@user...> |
Commiter | Deskull |
[Refactor] #37353 型の置換(concptr)。 / Type replacement(concptr).
@@ -15,8 +15,8 @@ concptr do_chaos_spell(SPELL_IDX spell, BIT_FLAGS mode) | ||
15 | 15 | bool info = (mode == SPELL_INFO) ? TRUE : FALSE; |
16 | 16 | bool cast = (mode == SPELL_CAST) ? TRUE : FALSE; |
17 | 17 | |
18 | - static const char s_dam[] = _("損傷:", "dam "); | |
19 | - static const char s_random[] = _("ランダム", "random"); | |
18 | + const concptr s_dam = _("損傷:", "dam "); | |
19 | + const concptr s_random = _("ランダム", "random"); | |
20 | 20 | |
21 | 21 | DIRECTION dir; |
22 | 22 | PLAYER_LEVEL plev = p_ptr->lev; |
@@ -15,7 +15,8 @@ concptr do_daemon_spell(SPELL_IDX spell, BIT_FLAGS mode) | ||
15 | 15 | bool desc = (mode == SPELL_DESC) ? TRUE : FALSE; |
16 | 16 | bool info = (mode == SPELL_INFO) ? TRUE : FALSE; |
17 | 17 | bool cast = (mode == SPELL_CAST) ? TRUE : FALSE; |
18 | - static const char s_dam[] = _("損傷:", "dam "); | |
18 | + | |
19 | + const concptr s_dam = _("損傷:", "dam "); | |
19 | 20 | |
20 | 21 | DIRECTION dir; |
21 | 22 | PLAYER_LEVEL plev = p_ptr->lev; |
@@ -16,8 +16,8 @@ concptr do_death_spell(SPELL_IDX spell, BIT_FLAGS mode) | ||
16 | 16 | bool info = (mode == SPELL_INFO) ? TRUE : FALSE; |
17 | 17 | bool cast = (mode == SPELL_CAST) ? TRUE : FALSE; |
18 | 18 | |
19 | - static const char s_dam[] = _("損傷:", "dam "); | |
20 | - static const char s_random[] = _("ランダム", "random"); | |
19 | + const concptr s_dam = _("損傷:", "dam "); | |
20 | + const concptr s_random = _("ランダム", "random"); | |
21 | 21 | |
22 | 22 | DIRECTION dir; |
23 | 23 | PLAYER_LEVEL plev = p_ptr->lev; |
@@ -15,8 +15,8 @@ concptr do_nature_spell(SPELL_IDX spell, BIT_FLAGS mode) | ||
15 | 15 | bool info = (mode == SPELL_INFO) ? TRUE : FALSE; |
16 | 16 | bool cast = (mode == SPELL_CAST) ? TRUE : FALSE; |
17 | 17 | |
18 | - static const char s_dam[] = _("損傷:", "dam "); | |
19 | - static const char s_rng[] = _("射程", "rng "); | |
18 | + const concptr s_dam = _("損傷:", "dam "); | |
19 | + const concptr s_rng = _("射程", "rng "); | |
20 | 20 | |
21 | 21 | DIRECTION dir; |
22 | 22 | PLAYER_LEVEL plev = p_ptr->lev; |
@@ -73,7 +73,8 @@ concptr do_music_spell(SPELL_IDX spell, BIT_FLAGS mode) | ||
73 | 73 | bool fail = (mode == SPELL_FAIL) ? TRUE : FALSE; |
74 | 74 | bool cont = (mode == SPELL_CONT) ? TRUE : FALSE; |
75 | 75 | bool stop = (mode == SPELL_STOP) ? TRUE : FALSE; |
76 | - static const char s_dam[] = _("損傷:", "dam "); | |
76 | + | |
77 | + const concptr s_dam = _("損傷:", "dam "); | |
77 | 78 | |
78 | 79 | DIRECTION dir; |
79 | 80 | PLAYER_LEVEL plev = p_ptr->lev; |
@@ -15,7 +15,8 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode) | ||
15 | 15 | bool info = (mode == SPELL_INFO) ? TRUE : FALSE; |
16 | 16 | bool cast = (mode == SPELL_CAST) ? TRUE : FALSE; |
17 | 17 | bool fail = (mode == SPELL_FAIL) ? TRUE : FALSE; |
18 | - static const char s_random[] = _("ランダム", "random"); | |
18 | + | |
19 | + const concptr s_random = _("ランダム", "random"); | |
19 | 20 | |
20 | 21 | DIRECTION dir; |
21 | 22 | PLAYER_LEVEL plev = p_ptr->lev; |