OSDN Git Service

[Refactor] #37353 型の置換(concptr)。 / Type replacement(concptr).
authorDeskull <deskull@users.sourceforge.jp>
Mon, 14 Jan 2019 03:29:18 +0000 (12:29 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Mon, 14 Jan 2019 03:29:18 +0000 (12:29 +0900)
src/realm-chaos.c
src/realm-daemon.c
src/realm-death.c
src/realm-nature.c
src/realm-song.c
src/realm-trump.c

index 7aedbfa..2eecfe0 100644 (file)
@@ -15,8 +15,8 @@ concptr do_chaos_spell(SPELL_IDX spell, BIT_FLAGS mode)
        bool info = (mode == SPELL_INFO) ? TRUE : FALSE;
        bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
 
-       static const char s_dam[] = _("損傷:", "dam ");
-       static const char s_random[] = _("ランダム", "random");
+       const concptr s_dam = _("損傷:", "dam ");
+       const concptr s_random = _("ランダム", "random");
 
        DIRECTION dir;
        PLAYER_LEVEL plev = p_ptr->lev;
index d9a3c55..9b01618 100644 (file)
@@ -15,7 +15,8 @@ concptr do_daemon_spell(SPELL_IDX spell, BIT_FLAGS mode)
        bool desc = (mode == SPELL_DESC) ? TRUE : FALSE;
        bool info = (mode == SPELL_INFO) ? TRUE : FALSE;
        bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
-       static const char s_dam[] = _("損傷:", "dam ");
+
+       const concptr s_dam = _("損傷:", "dam ");
 
        DIRECTION dir;
        PLAYER_LEVEL plev = p_ptr->lev;
index 55e618b..7113726 100644 (file)
@@ -16,8 +16,8 @@ concptr do_death_spell(SPELL_IDX spell, BIT_FLAGS mode)
        bool info = (mode == SPELL_INFO) ? TRUE : FALSE;
        bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
 
-       static const char s_dam[] = _("損傷:", "dam ");
-       static const char s_random[] = _("ランダム", "random");
+       const concptr s_dam = _("損傷:", "dam ");
+       const concptr s_random = _("ランダム", "random");
 
        DIRECTION dir;
        PLAYER_LEVEL plev = p_ptr->lev;
index 3654293..543608d 100644 (file)
@@ -15,8 +15,8 @@ concptr do_nature_spell(SPELL_IDX spell, BIT_FLAGS mode)
        bool info = (mode == SPELL_INFO) ? TRUE : FALSE;\r
        bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;\r
 \r
-       static const char s_dam[] = _("損傷:", "dam ");\r
-       static const char s_rng[] = _("射程", "rng ");\r
+       const concptr s_dam = _("損傷:", "dam ");\r
+       const concptr s_rng = _("射程", "rng ");\r
 \r
        DIRECTION dir;\r
        PLAYER_LEVEL plev = p_ptr->lev;\r
index b9f8826..21d9419 100644 (file)
@@ -73,7 +73,8 @@ concptr do_music_spell(SPELL_IDX spell, BIT_FLAGS mode)
        bool fail = (mode == SPELL_FAIL) ? TRUE : FALSE;
        bool cont = (mode == SPELL_CONT) ? TRUE : FALSE;
        bool stop = (mode == SPELL_STOP) ? TRUE : FALSE;
-       static const char s_dam[] = _("損傷:", "dam ");
+
+       const concptr s_dam = _("損傷:", "dam ");
 
        DIRECTION dir;
        PLAYER_LEVEL plev = p_ptr->lev;
index f9c0291..59db0bd 100644 (file)
@@ -15,7 +15,8 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
        bool info = (mode == SPELL_INFO) ? TRUE : FALSE;
        bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
        bool fail = (mode == SPELL_FAIL) ? TRUE : FALSE;
-       static const char s_random[] = _("ランダム", "random");
+
+       const concptr s_random = _("ランダム", "random");
 
        DIRECTION dir;
        PLAYER_LEVEL plev = p_ptr->lev;