summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ctest.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/ctest.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/ctest.cc')
-rw-r--r--crawl-ref/source/ctest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/ctest.cc b/crawl-ref/source/ctest.cc
index 2be6fa9d9d..43ee99df84 100644
--- a/crawl-ref/source/ctest.cc
+++ b/crawl-ref/source/ctest.cc
@@ -61,7 +61,7 @@ static int crawl_begin_test(lua_State *ls)
activity,
luaL_checkstring(ls, 1));
lua_pushnumber(ls, ++ntests);
- return (1);
+ return 1;
}
static int crawl_test_success(lua_State *ls)
@@ -69,7 +69,7 @@ static int crawl_test_success(lua_State *ls)
if (!crawl_state.script)
mprf(MSGCH_PROMPT, "Test success: %s", luaL_checkstring(ls, 1));
lua_pushnumber(ls, ++nsuccess);
- return (1);
+ return 1;
}
static int crawl_script_args(lua_State *ls)
@@ -96,15 +96,15 @@ static void _init_test_bindings()
static bool _is_test_selected(const std::string &testname)
{
if (crawl_state.tests_selected.empty())
- return (true);
+ return true;
for (int i = 0, size = crawl_state.tests_selected.size();
i < size; ++i)
{
const std::string &phrase(crawl_state.tests_selected[i]);
if (testname.find(phrase) != std::string::npos)
- return (true);
+ return true;
}
- return (false);
+ return false;
}
static void run_test(const std::string &file)