summaryrefslogtreecommitdiffstats
path: root/dcoppython/shell/gen_marshal_code.py
diff options
context:
space:
mode:
Diffstat (limited to 'dcoppython/shell/gen_marshal_code.py')
-rw-r--r--dcoppython/shell/gen_marshal_code.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dcoppython/shell/gen_marshal_code.py b/dcoppython/shell/gen_marshal_code.py
index c24c8760..b6ae516f 100644
--- a/dcoppython/shell/gen_marshal_code.py
+++ b/dcoppython/shell/gen_marshal_code.py
@@ -34,7 +34,7 @@ class DictMaker:
def handle_string_marsh(self, attribute):
"""Handle marshalling of string item from the dictionary."""
return ["if (%s && !PyString_Check(%s)) return false;" % (attribute, attribute),
- "if (%s) { qobj.%s(QString(PyString_AsString(%s)));" % (attribute, set_method(attribute), attribute),
+ "if (%s) { qobj.%s(TQString(PyString_AsString(%s)));" % (attribute, set_method(attribute), attribute),
"PyDict_DelItemString(dict,(char*)\"%s\"); } " % (attribute)]
def handle_string_demarsh(self, attribute):
@@ -197,11 +197,11 @@ for l in in_file.readlines():
if m.groups()[0]:
current_operation = DEMARSHAL
code.append("PyObject *demarshal_" + current_type + \
- "(QDataStream *str)")
+ "(TQDataStream *str)")
else:
current_operation = MARSHAL
code.append("bool marshal_" + current_type + \
- "(PyObject *obj, QDataStream *str)")
+ "(PyObject *obj, TQDataStream *str)")
dict_maker.set_operation(current_operation)
continue