summaryrefslogtreecommitdiff
path: root/src/spells5.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:31 +0200
committerBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:31 +0200
commitbf0ddb1341419740684db08812c3b077d101d25d (patch)
treefa3b5c1a13c126e5d2c28e6b667cd043350f1f46 /src/spells5.cc
parentdecd9655b60f7437e58e76b92ff658b639b5f92a (diff)
Remove 'cptr' typedef
It's time to rip off the band-aid.
Diffstat (limited to 'src/spells5.cc')
-rw-r--r--src/spells5.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spells5.cc b/src/spells5.cc
index 09d1815b..53d7b8b2 100644
--- a/src/spells5.cc
+++ b/src/spells5.cc
@@ -12,7 +12,7 @@
static s16b school_spells_count = 0;
static struct spell_type *school_spells[SCHOOL_SPELLS_MAX];
-static spell_type *spell_new(s32b *index, cptr name)
+static spell_type *spell_new(s32b *index, const char *name)
{
assert(school_spells_count < SCHOOL_SPELLS_MAX);
@@ -24,7 +24,7 @@ static spell_type *spell_new(s32b *index, cptr name)
return spell;
}
-static cptr no_info()
+static const char *no_info()
{
return "";
}
@@ -37,7 +37,7 @@ spell_type *spell_at(s32b index)
return school_spells[index];
}
-boost::optional<int> find_spell(cptr name)
+boost::optional<int> find_spell(const char *name)
{
int i;