Convert ToStr, Serialise, and TypeName to use literal strings

This commit is contained in:
baldurk
2019-05-08 14:24:53 +01:00
parent c8a518f05c
commit 699f8753af
84 changed files with 1215 additions and 1186 deletions
@@ -590,9 +590,8 @@ bool PythonContext::LoadExtension(ICaptureContext &ctx, const rdcstr &extension)
if(register_func)
{
QByteArray baseTypeName = TypeName<ICaptureContext>();
baseTypeName += " *";
PyObject *pyctx = PassObjectToPython(baseTypeName.data(), &ctx);
PyObject *pyctx =
PassObjectToPython((rdcstr(TypeName<ICaptureContext>()) + " *").c_str(), &ctx);
PyObject *retval = NULL;
if(pyctx)