diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
commit | 61a9e3c08009d143def75765169ed844944c370e (patch) | |
tree | b1ee38c5ed5098da6f16917b3287d4e420b1eb43 /src/object1.cc | |
parent | fc06bedef3f5521a97989ebb6c7160744c640a19 (diff) |
Add "const" qualifiers
Diffstat (limited to 'src/object1.cc')
-rw-r--r-- | src/object1.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object1.cc b/src/object1.cc index 1aaf2a6c..fd3ab769 100644 --- a/src/object1.cc +++ b/src/object1.cc @@ -1092,7 +1092,7 @@ s32b calc_object_need_exp(object_type const *o_ptr) * 2 -- The Cloak of Death [1,+3] (+2 to Stealth) * 3 -- The Cloak of Death [1,+3] (+2 to Stealth) {nifty} */ -std::string object_desc_aux(object_type *o_ptr, int pref, int mode) +static std::string object_desc_aux(object_type const *o_ptr, int pref, int mode) { bool_ hack_name = FALSE; @@ -2179,7 +2179,7 @@ std::string object_desc_aux(object_type *o_ptr, int pref, int mode) return t; } -void object_desc(char *buf, object_type *o_ptr, int pref, int mode) +void object_desc(char *buf, object_type const *o_ptr, int pref, int mode) { auto s = object_desc_aux(o_ptr, pref, mode); auto n = std::min<std::size_t>(s.size(), 79); @@ -4154,7 +4154,7 @@ void display_equip(void) /* Get the color of the letter idx */ -byte get_item_letter_color(object_type *o_ptr) +byte get_item_letter_color(object_type const *o_ptr) { byte color = TERM_WHITE; |