summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/macro.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-08-07 11:23:15 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-08 15:55:12 +0200
commit8e9ce489a95dc5a99a8f7c24214daab1a9aa3737 (patch)
tree413632230322181847a7df0ad58bc8717245ca22 /crawl-ref/source/macro.cc
parent1401ecdd7c55daa75c9b869111823c394642c1a7 (diff)
downloadcrawl-ref-8e9ce489a95dc5a99a8f7c24214daab1a9aa3737.tar.gz
crawl-ref-8e9ce489a95dc5a99a8f7c24214daab1a9aa3737.zip
Drop a bunch of parentheses from return statements.
This is incomplete, partially because of me getting bored, partially because of doubts about the point of leaving simple addition/etc in parentheses.
Diffstat (limited to 'crawl-ref/source/macro.cc')
-rw-r--r--crawl-ref/source/macro.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc
index 4c11e3dd69..6e62fe871c 100644
--- a/crawl-ref/source/macro.cc
+++ b/crawl-ref/source/macro.cc
@@ -215,7 +215,7 @@ static std::string get_macro_file()
}
#if defined(DGL_MACRO_ABSOLUTE_PATH)
- return (dir.empty()? "macro.txt" : dir);
+ return dir.empty()? "macro.txt" : dir;
#endif
check_mkdir("Macro directory", &dir, true);
@@ -1272,13 +1272,13 @@ int command_to_key(command_type cmd)
KeymapContext context = _context_for_command(cmd);
if (context == KMC_NONE)
- return ('\0');
+ return '\0';
cmd_to_key_map &cmd_map = _cmds_to_keys[context];
cmd_to_key_map::iterator it = cmd_map.find(cmd);
if (it == cmd_map.end())
- return ('\0');
+ return '\0';
return it->second;
}