summaryrefslogtreecommitdiffstats
path: root/dcop/client/marshall.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2022-05-20 13:22:09 +0300
committerMavridis Philippe <mavridisf@gmail.com>2022-05-20 13:22:09 +0300
commit46435f6c1c319a2c86a00dd2f4d03553901e7487 (patch)
treecd86b6bffed67572a081f886904a758e767059e5 /dcop/client/marshall.cpp
parenta092e968024451317ab39642d23b99df5c38f37f (diff)
downloadtdelibs-46435f6c1c319a2c86a00dd2f4d03553901e7487.tar.gz
tdelibs-46435f6c1c319a2c86a00dd2f4d03553901e7487.zip
dcopclient: Fixed TQMap/TQValueList display.
This fixes issue #166. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'dcop/client/marshall.cpp')
-rw-r--r--dcop/client/marshall.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dcop/client/marshall.cpp b/dcop/client/marshall.cpp
index 5128be80b..90fca75fa 100644
--- a/dcop/client/marshall.cpp
+++ b/dcop/client/marshall.cpp
@@ -203,12 +203,12 @@ TQCString demarshal( TQDataStream &stream, const TQString &type )
KURL r;
stream >> r;
result = r.url().local8Bit();
- } else if ( type.left( 11 ) == TQVALUELIST_OBJECT_NAME_STRING "<" )
+ } else if ( type.left( 12 ) == TQVALUELIST_OBJECT_NAME_STRING "<" )
{
- if ( (uint)type.find( '>', 11 ) != type.length() - 1 )
+ if ( (uint)type.find( '>', 12 ) != type.length() - 1 )
return result;
- TQString nestedType = type.mid( 11, type.length() - 12 );
+ TQString nestedType = type.mid( 12, type.length() - 13 );
if ( nestedType.isEmpty() )
return result;
@@ -225,9 +225,9 @@ TQCString demarshal( TQDataStream &stream, const TQString &type )
if ( i < count - 1 )
result += '\n';
}
- } else if ( type.left( 5 ) == TQMAP_OBJECT_NAME_STRING "<" )
+ } else if ( type.left( 6 ) == TQMAP_OBJECT_NAME_STRING "<" )
{
- int commaPos = type.find( ',', 5 );
+ int commaPos = type.find( ',', 6 );
if ( commaPos == -1 )
return result;
@@ -235,7 +235,7 @@ TQCString demarshal( TQDataStream &stream, const TQString &type )
if ( (uint)type.find( '>', commaPos ) != type.length() - 1 )
return result;
- TQString keyType = type.mid( 5, commaPos - 5 );
+ TQString keyType = type.mid( 6, commaPos - 6 );
TQString valueType = type.mid( commaPos + 1, type.length() - commaPos - 2 );
TQ_UINT32 count;