We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40179b commit feac16bCopy full SHA for feac16b
src/xrScriptEngine/script_engine.cpp
@@ -505,13 +505,12 @@ struct raii_guard : private Noncopyable
505
{
506
CScriptEngine* scriptEngine;
507
int m_error_code;
508
- const char* m_error_description;
+ LPCSTR const& m_error_description;
509
510
- raii_guard(CScriptEngine* scriptEngine, int error_code, const char* error_description)
+ raii_guard(CScriptEngine* scriptEngine, int error_code, LPCSTR const& error_description)
511
+ :m_error_code(error_code), m_error_description(error_description)
512
513
this->scriptEngine = scriptEngine;
- m_error_code = error_code;
514
- m_error_description = error_description;
515
}
516
517
~raii_guard()
0 commit comments