Use TQString for debugging output with unicode strings

Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
pull/11/head
Fabio Rossi 6 years ago
parent 9fd3b6acfa
commit 1340cc3235

@ -855,7 +855,11 @@ bool KTNEFParser::readMAPIProperties( TQMap<int,KTNEFProperty*>& props, KTNEFAtt
kdDebug().form( "(tag=%04x) MAPI time%s: %s\n", mapi.tag, mapiname.ascii(), mapi.value.toString().ascii() );
break;
case MAPI_TYPE_USTRING:
kdDebug().form( "(tag=%04x) MAPI unicode string%s: size=%d \"%s\"\n", mapi.tag, mapiname.ascii(), mapi.value.toByteArray().size(), mapi.value.toString().ascii() );
kdDebug() << TQString( "(tag=%1) MAPI unicode string%2: size=%3 \"%4\"\n" )
.arg( TQString( "%1" ).arg(mapi.tag, 4, 16).replace(" ","0") )
.arg( mapiname )
.arg( mapi.value.toByteArray().size() )
.arg( mapi.value.toString() );
break;
case MAPI_TYPE_STRING8:
kdDebug().form( "(tag=%04x) MAPI string%s: size=%d \"%s\"\n", mapi.tag, mapiname.ascii(), mapi.value.toByteArray().size(), mapi.value.toString().ascii() );

Loading…
Cancel
Save