summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-util.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
commitc41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch)
tree764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/dbg-util.cc
parentb80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff)
downloadcrawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz
crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/dbg-util.cc')
-rw-r--r--crawl-ref/source/dbg-util.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/dbg-util.cc b/crawl-ref/source/dbg-util.cc
index 69cc7a148a..9262054714 100644
--- a/crawl-ref/source/dbg-util.cc
+++ b/crawl-ref/source/dbg-util.cc
@@ -29,11 +29,11 @@ monster_type debug_prompt_for_monster(void)
if (!cancelable_get_line_autohist(specs, sizeof specs))
{
if (specs[0] == '\0')
- return (MONS_NO_MONSTER);
+ return MONS_NO_MONSTER;
return (get_monster_by_name(specs));
}
- return (MONS_NO_MONSTER);
+ return MONS_NO_MONSTER;
}
static void _dump_vault_table(const CrawlHashTable &table)
@@ -113,7 +113,7 @@ std::string debug_mon_str(const monster* mon)
out += make_stringf("%s [midx = %d]", debug_coord_str(mon->pos()).c_str(),
midx);
- return (out);
+ return out;
}
static void _debug_mid_name(mid_t mid)
@@ -350,7 +350,7 @@ skill_type debug_prompt_for_skill(const char *prompt)
char specs[80];
msgwin_get_line_autohist(prompt, specs, sizeof(specs));
if (specs[0] == '\0')
- return (SK_NONE);
+ return SK_NONE;
return skill_from_name(lowercase_string(specs).c_str());
}
@@ -375,7 +375,7 @@ skill_type skill_from_name(const char *name)
}
}
- return (skill);
+ return skill;
}
std::string debug_art_val_str(const item_def& item)