From 61a9e3c08009d143def75765169ed844944c370e Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 20 Jun 2016 22:49:05 +0200 Subject: Add "const" qualifiers --- src/object1.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/object1.cc') 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(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; -- cgit v1.2.3