From 61cae4a761c2f72cda44ae269c7007b37a0c14a7 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 26 Jun 2008 10:39:39 +0000 Subject: Misc. minor cleanups. (Yes, a huge amount of them but still...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 90f5b2c6f4..f472fc12dc 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -1592,7 +1592,7 @@ std::string get_item_description( const item_def &item, bool verbose, std::string db_desc = getLongDescription(db_name, is_artefact(item)); - if (db_desc == "") + if (db_desc.empty()) { if (item_type_known(item)) { @@ -2460,7 +2460,7 @@ static bool _print_god_abil_desc( int god, int numpower ) std::ostringstream buf; - if ( isupper(pmsg[0]) ) + if (isupper(pmsg[0])) buf << pmsg; // Complete sentence given. else buf << "You can " << pmsg << "."; @@ -2476,7 +2476,7 @@ static bool _print_god_abil_desc( int god, int numpower ) } cprintf( "%s\n", buf.str().c_str() ); - return true; + return (true); } static std::string _describe_favour_generic(god_type which_god) @@ -2544,8 +2544,9 @@ static std::string _religion_help( god_type god ) if (!player_under_penance() && you.piety > 160 && !you.num_gifts[god]) { - if (result != "") + if (!result.empty()) result += " "; + result += "You can pray at an altar to have your weapon " "blessed, especially a long sword."; } @@ -2580,8 +2581,9 @@ static std::string _religion_help( god_type god ) if (god_likes_butchery(god)) { - if (result != "") + if (!result.empty()) result += " "; + result += "You can sacrifice corpses by dissecting" " them during prayer."; } -- cgit v1.2.3-54-g00ecf