Update initialize of nsString, which changed sometime in the last 2 years!

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@159572 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mhammond%skippinet.com.au
2004-07-21 11:42:46 +00:00
parent f3f3fc5d92
commit bbc9765867

View File

@@ -1166,7 +1166,7 @@ PRBool PyXPCOM_InterfaceVariantHelper::FillInVariant(const PythonTypeDescriptor
case nsXPTType::T_ASTRING:
case nsXPTType::T_DOMSTRING: {
if (val==Py_None) {
ns_v.val.p = new nsString(nsnull);
ns_v.val.p = new nsString();
} else {
if (!PyString_Check(val) && !PyUnicode_Check(val)) {
PyErr_SetString(PyExc_TypeError, "This parameter must be a string or Unicode object");