summaryrefslogtreecommitdiffstats
path: root/dcoppython/shell/marshaller.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-20 01:09:59 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-06-20 01:09:59 -0500
commita5ebcd697325e8e6ac9756cc96857d9298d2c114 (patch)
tree83ad2687d35b7c717b2ac5a0c69e61dac17cb0dd /dcoppython/shell/marshaller.cpp
parentb9190991168c11cd8a602c3b4490300ac01776fb (diff)
downloadtdebindings-a5ebcd697325e8e6ac9756cc96857d9298d2c114.tar.gz
tdebindings-a5ebcd697325e8e6ac9756cc96857d9298d2c114.zip
Update for recent TQ changes.
Diffstat (limited to 'dcoppython/shell/marshaller.cpp')
-rw-r--r--dcoppython/shell/marshaller.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dcoppython/shell/marshaller.cpp b/dcoppython/shell/marshaller.cpp
index 1aaebc38..5b15aded 100644
--- a/dcoppython/shell/marshaller.cpp
+++ b/dcoppython/shell/marshaller.cpp
@@ -101,7 +101,7 @@ namespace PythonDCOP {
return false;
if (str) {
- (*str) << (Q_INT32)count;
+ (*str) << (TQ_INT32)count;
for(int c=0; c<count; c++)
list_type.marshal( PyList_GetItem(obj,c), *str );
}
@@ -111,11 +111,11 @@ namespace PythonDCOP {
PyObject *Marshaller::demarshalList(const PCOPType &list_type,
TQDataStream *str) const {
- Q_UINT32 count;
+ TQ_UINT32 count;
(*str) >> count;
PyObject *obj = PyList_New(count);
- for(Q_UINT32 c=0;c<count;c++) {
+ for(TQ_UINT32 c=0;c<count;c++) {
PyList_SetItem(obj, c, list_type.demarshal(*str));
}
return obj;
@@ -136,7 +136,7 @@ namespace PythonDCOP {
return false;
if (str) {
- Q_INT32 count = (Q_INT32)PyDict_Size(obj);
+ TQ_INT32 count = (TQ_INT32)PyDict_Size(obj);
(*str) << count;
c=0;
while (PyDict_Next(obj, &c, &key, &val)==1) {
@@ -151,9 +151,9 @@ namespace PythonDCOP {
const PCOPType &value_type,
TQDataStream *str) const {
PyObject *obj = PyDict_New();
- Q_INT32 count;
+ TQ_INT32 count;
(*str) >> count;
- for(Q_INT32 c=0;c<count;c++) {
+ for(TQ_INT32 c=0;c<count;c++) {
PyObject *key = key_type.demarshal(*str);
PyObject *value = value_type.demarshal(*str);
PyDict_SetItem(obj,key,value);