From af9d6c8e0e2e3f58d255449716ad7875cde5ae07 Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 12 Oct 2008 01:49:12 +0000 Subject: General code improvements. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7220 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 398533aef2..3c04ab10d9 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2362,8 +2362,7 @@ void describe_monsters(const monsters& mons) if (mons_is_mimic(mons.type) && !(mons.flags & MF_KNOWN_MIMIC)) { item_def item; - const monsters *mon = &mons; - get_mimic_item( mon, item ); + get_mimic_item(&mons, item); describe_item(item); return; } @@ -2371,7 +2370,7 @@ void describe_monsters(const monsters& mons) std::ostringstream body; std::string title, prefix, suffix, quote; - std::string capname = mons.name(DESC_CAP_A); + const std::string capname = mons.name(DESC_CAP_A); title = capname; if (mons.has_base_name()) { @@ -2388,7 +2387,7 @@ void describe_monsters(const monsters& mons) body << getLongDescription(db_name); quote = getQuoteString(db_name); - std::string symbol = ""; + std::string symbol; symbol += get_monster_data(mons.type)->showchar; if (isupper(symbol[0])) symbol = "cap-" + symbol; -- cgit v1.2.3-54-g00ecf