summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 13:22:39 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 14:00:11 +0200
commit68935e461e64eeb85ea44c616d1eab58975b8e20 (patch)
tree471804168af54b681856211f26fefb5091b34c34 /crawl-ref/source/clua.cc
parent15d548d4ba1148531b8d755d4130962126bccb52 (diff)
downloadcrawl-ref-68935e461e64eeb85ea44c616d1eab58975b8e20.tar.gz
crawl-ref-68935e461e64eeb85ea44c616d1eab58975b8e20.zip
Some more return deparenthesization.
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index 60f2e16a21..5762c77a8b 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -229,14 +229,14 @@ int CLua::loadfile(lua_State *ls, const char *filename, bool trusted,
bool die_on_fail)
{
if (!ls)
- return (-1);
+ return -1;
if (!is_path_safe(filename, trusted))
{
lua_pushstring(
ls,
make_stringf("invalid filename: %s", filename).c_str());
- return (-1);
+ return -1;
}
std::string file = datafile_path(filename, die_on_fail);
@@ -244,7 +244,7 @@ int CLua::loadfile(lua_State *ls, const char *filename, bool trusted,
{
lua_pushstring(ls,
make_stringf("Can't find \"%s\"", filename).c_str());
- return (-1);
+ return -1;
}
FileLineInput f(file.c_str());
@@ -692,7 +692,7 @@ CLua &CLua::get_vm(lua_State *ls)
CLua *vm = clua_get_lightuserdata<CLua>(ls, -1);
if (!vm)
luaL_error(ls, "Could not find matching clua for lua state");
- return (*vm);
+ return *vm;
}
bool CLua::is_managed_vm(lua_State *ls)
@@ -1149,7 +1149,7 @@ const lua_datum &lua_datum::operator = (const lua_datum &o)
cleanup();
set_from(o);
}
- return (*this);
+ return *this;
}
void lua_datum::push() const