From c56d379860a440a1e4632811fc9a9d75b5c9630e Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 26 Sep 2006 05:44:44 +0000 Subject: [PATCH] Stop uglifying the ternary operator. --- stepmania/src/LuaManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index c186e79817..80f067571f 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -507,9 +507,9 @@ bool LuaHelpers::RunScript( Lua *L, const RString &sScript, const RString &sName bool LuaHelpers::RunExpression( Lua *L, const RString &sExpression, const RString &sName ) { RString sError; - if( !LuaHelpers::RunScript(L, "return " + sExpression, sName.empty() ? RString("in") : sName, sError, 1) ) + if( !LuaHelpers::RunScript(L, "return " + sExpression, sName.empty()? RString("in"):sName, sError, 1) ) { - sError = ssprintf( "Lua runtime error parsing \"%s\": %s", sName.size() ? sName.c_str() : sExpression.c_str(), sError.c_str() ); + sError = ssprintf( "Lua runtime error parsing \"%s\": %s", sName.size()? sName.c_str():sExpression.c_str(), sError.c_str() ); Dialog::OK( sError, "LUA_ERROR" ); return false; } @@ -574,7 +574,7 @@ bool LuaHelpers::RunAtExpressionS( RString &sStr ) /* Like luaL_typerror, but without the special case for argument 1 being "self" * in method calls, so we give a correct error message after we remove self. */ -RString GetLuaBindingType( Lua *L, int iArgNo ) +static RString GetLuaBindingType( Lua *L, int iArgNo ) { if( lua_isnil(L, iArgNo) ) return "nil";