From d67f68267fe971947a9618fbbf1acd6b5b4f5a87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 1 Jun 2019 17:36:21 +0900 Subject: Adjusted to use new TQStringVariantMap type. Signed-off-by: Michele Calgaro --- dcoprss/query.cpp | 2 +- dcoprss/xmlrpciface.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dcoprss') diff --git a/dcoprss/query.cpp b/dcoprss/query.cpp index 9c324890..636390e3 100644 --- a/dcoprss/query.cpp +++ b/dcoprss/query.cpp @@ -173,7 +173,7 @@ void QueryService::slotGotFeedInfo( const KXMLRPC::Query::Result &result ) TQValueList::ConstIterator it = feedInfos.begin(); TQValueList::ConstIterator end = feedInfos.end(); for ( ; it != end; ++it ) { - const TQMap feedInfo = ( *it ).toMap(); + const TQStringVariantMap feedInfo = ( *it ).toMap(); const TQString name = feedInfo[ "sitename" ].toString(); const TQString link = feedInfo[ "dataurl" ].toString(); diff --git a/dcoprss/xmlrpciface.cpp b/dcoprss/xmlrpciface.cpp index 05896d81..8e8e6b8a 100644 --- a/dcoprss/xmlrpciface.cpp +++ b/dcoprss/xmlrpciface.cpp @@ -214,9 +214,9 @@ TQString Query::marshal( const TQVariant &arg ) } case TQVariant::Map: { s += ""; - TQMap map = arg.toMap(); - TQMap::ConstIterator it = map.begin(); - TQMap::ConstIterator end = map.end(); + TQStringVariantMap map = arg.toMap(); + TQStringVariantMap::ConstIterator it = map.begin(); + TQStringVariantMap::ConstIterator end = map.end(); for ( ; it != end; ++it ) { s += ""; s += "" + it.key() + ""; @@ -267,7 +267,7 @@ TQVariant Query::demarshal( const TQDomElement &elem ) } return TQVariant( values ); } else if ( typeName == "struct" ) { - TQMap map; + TQStringVariantMap map; TQDomNode memberNode = typeElement.firstChild(); while ( !memberNode.isNull() ) { const TQString key = memberNode.toElement().elementsByTagName( "name" ).item( 0 ).toElement().text(); -- cgit v1.2.1