Skip to content

Commit 6efa117

Browse files
committed
xrSE_Factory: replace xr_new with new
1 parent 5e7fd54 commit 6efa117

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/utils/xrSE_Factory/ai_space.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CAI_Space::CAI_Space() { m_script_engine = nullptr; }
1616
void CAI_Space::init()
1717
{
1818
VERIFY(!m_script_engine);
19-
m_script_engine = xr_new<CScriptEngine>();
19+
m_script_engine = new CScriptEngine();
2020
m_script_engine->init();
2121
#error additional initialization is required here: RegisterScriptClasses + object_factory().register_script()
2222
// RegisterScriptClasses();

src/utils/xrSE_Factory/ai_space_inline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ IC CAI_Space& ai()
1818
{
1919
if (!g_ai_space)
2020
{
21-
g_ai_space = xr_new<CAI_Space>();
21+
g_ai_space = new CAI_Space();
2222
g_ai_space->init();
2323
}
2424
return *g_ai_space;

src/utils/xrSE_Factory/properties_list_helper_script.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void load_prop_helper()
4242
return;
4343
}
4444

45-
g_property_list_helper = xr_new<CScriptPropertiesListHelper>();
45+
g_property_list_helper = new CScriptPropertiesListHelper();
4646
}
4747

4848
IPropHelper& PHelper()

src/utils/xrSE_Factory/script_properties_list_helper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct CWrapHelper
2929
template <bool a>
3030
static T* wrap_value(luabind::object object, LPCSTR name)
3131
{
32-
CScriptValueWrapper<T>* value = xr_new<CScriptValueWrapper<T>>(object, name);
32+
CScriptValueWrapper<T>* value = new CScriptValueWrapper<T>(object, name);
3333
owner(object)->add(value);
3434
return (value->value());
3535
}
@@ -49,15 +49,15 @@ struct CWrapHelper<bool>
4949
template <bool a>
5050
static BOOL* wrap_value(luabind::object object, LPCSTR name)
5151
{
52-
CScriptValueWrapper<bool>* value = xr_new<CScriptValueWrapper<bool>>(object, name);
52+
CScriptValueWrapper<bool>* value = new CScriptValueWrapper<bool>(object, name);
5353
owner(object)->add(value);
5454
return (value->value());
5555
}
5656

5757
template <bool a>
5858
static BOOL* wrap_value(luabind::object object, luabind::object table, LPCSTR name)
5959
{
60-
CScriptValueWrapper<bool>* value = xr_new<CScriptValueWrapper<bool>>(table, name);
60+
CScriptValueWrapper<bool>* value = new CScriptValueWrapper<bool>(table, name);
6161
owner(object)->add(value);
6262
return (value->value());
6363
}

0 commit comments

Comments
 (0)