Skip to content

Commit

Permalink
xrSE_Factory: replace xr_new with new
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Aug 8, 2017
1 parent 5e7fd54 commit 6efa117
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/xrSE_Factory/ai_space.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CAI_Space::CAI_Space() { m_script_engine = nullptr; }
void CAI_Space::init()
{
VERIFY(!m_script_engine);
m_script_engine = xr_new<CScriptEngine>();
m_script_engine = new CScriptEngine();
m_script_engine->init();
#error additional initialization is required here: RegisterScriptClasses + object_factory().register_script()
// RegisterScriptClasses();
Expand Down
2 changes: 1 addition & 1 deletion src/utils/xrSE_Factory/ai_space_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ IC CAI_Space& ai()
{
if (!g_ai_space)
{
g_ai_space = xr_new<CAI_Space>();
g_ai_space = new CAI_Space();
g_ai_space->init();
}
return *g_ai_space;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/xrSE_Factory/properties_list_helper_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void load_prop_helper()
return;
}

g_property_list_helper = xr_new<CScriptPropertiesListHelper>();
g_property_list_helper = new CScriptPropertiesListHelper();
}

IPropHelper& PHelper()
Expand Down
6 changes: 3 additions & 3 deletions src/utils/xrSE_Factory/script_properties_list_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct CWrapHelper
template <bool a>
static T* wrap_value(luabind::object object, LPCSTR name)
{
CScriptValueWrapper<T>* value = xr_new<CScriptValueWrapper<T>>(object, name);
CScriptValueWrapper<T>* value = new CScriptValueWrapper<T>(object, name);
owner(object)->add(value);
return (value->value());
}
Expand All @@ -49,15 +49,15 @@ struct CWrapHelper<bool>
template <bool a>
static BOOL* wrap_value(luabind::object object, LPCSTR name)
{
CScriptValueWrapper<bool>* value = xr_new<CScriptValueWrapper<bool>>(object, name);
CScriptValueWrapper<bool>* value = new CScriptValueWrapper<bool>(object, name);
owner(object)->add(value);
return (value->value());
}

template <bool a>
static BOOL* wrap_value(luabind::object object, luabind::object table, LPCSTR name)
{
CScriptValueWrapper<bool>* value = xr_new<CScriptValueWrapper<bool>>(table, name);
CScriptValueWrapper<bool>* value = new CScriptValueWrapper<bool>(table, name);
owner(object)->add(value);
return (value->value());
}
Expand Down

0 comments on commit 6efa117

Please sign in to comment.