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/chardump.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/chardump.cc') diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 9a1eb2f921..359467656d 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -363,12 +363,12 @@ static void _sdump_misc(dump_params &par) #define TO_PERCENT(x, y) (100.0f * ((float) (x)) / ((float) (y))) static std::string _sdump_turns_place_info(PlaceInfo place_info, - std::string name = "") + std::string name = "") { PlaceInfo gi = you.global_info; std::string out; - if (name == "") + if (name.empty()) name = place_info.short_name(); float a, b, c, d, e, f; @@ -988,7 +988,7 @@ static std::string _sdump_kills_place_info(PlaceInfo place_info, PlaceInfo gi = you.global_info; std::string out; - if (name == "") + if (name.empty()) name = place_info.short_name(); unsigned int global_total_kills = 0; -- cgit v1.2.3-54-g00ecf