mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
C++11 cleanup on constructors (#6000)
* C++11 cleanup on constructors dir script
This commit is contained in:
parent
4a78949083
commit
4a5e8ad343
40 changed files with 117 additions and 180 deletions
|
@ -71,9 +71,7 @@ public:
|
|||
ScriptApiBase
|
||||
*/
|
||||
|
||||
ScriptApiBase::ScriptApiBase() :
|
||||
m_luastackmutex(),
|
||||
m_gamedef(NULL)
|
||||
ScriptApiBase::ScriptApiBase()
|
||||
{
|
||||
#ifdef SCRIPTAPI_LOCK_DEBUG
|
||||
m_lock_recursion_count = 0;
|
||||
|
@ -111,14 +109,6 @@ ScriptApiBase::ScriptApiBase() :
|
|||
|
||||
lua_pushstring(m_luastack, porting::getPlatformName());
|
||||
lua_setglobal(m_luastack, "PLATFORM");
|
||||
|
||||
// m_secure gets set to true inside
|
||||
// ScriptApiSecurity::initializeSecurity(), if neccessary.
|
||||
// Default to false otherwise
|
||||
m_secure = false;
|
||||
|
||||
m_environment = NULL;
|
||||
m_guiengine = NULL;
|
||||
}
|
||||
|
||||
ScriptApiBase::~ScriptApiBase()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue