Browse Source

Adjusted to use new TQStringVariantMap type.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 1 month ago
parent
commit
d67f68267f
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
2 changed files with 5 additions and 5 deletions
  1. 1
    1
      dcoprss/query.cpp
  2. 4
    4
      dcoprss/xmlrpciface.cpp

+ 1
- 1
dcoprss/query.cpp View File

@@ -173,7 +173,7 @@ void QueryService::slotGotFeedInfo( const KXMLRPC::Query::Result &result )
173 173
 	TQValueList<TQVariant>::ConstIterator it = feedInfos.begin();
174 174
 	TQValueList<TQVariant>::ConstIterator end = feedInfos.end();
175 175
 	for ( ; it != end; ++it ) {
176
-		const TQMap<TQString, TQVariant> feedInfo = ( *it ).toMap();
176
+		const TQStringVariantMap feedInfo = ( *it ).toMap();
177 177
 
178 178
 		const TQString name = feedInfo[ "sitename" ].toString();
179 179
 		const TQString link = feedInfo[ "dataurl" ].toString();

+ 4
- 4
dcoprss/xmlrpciface.cpp View File

@@ -214,9 +214,9 @@ TQString Query::marshal( const TQVariant &arg )
214 214
 		}
215 215
 		case TQVariant::Map: {
216 216
 			s += "<struct>";
217
-			TQMap<TQString, TQVariant> map = arg.toMap();
218
-			TQMap<TQString, TQVariant>::ConstIterator it = map.begin();
219
-			TQMap<TQString, TQVariant>::ConstIterator end = map.end();
217
+			TQStringVariantMap map = arg.toMap();
218
+			TQStringVariantMap::ConstIterator it = map.begin();
219
+			TQStringVariantMap::ConstIterator end = map.end();
220 220
 			for ( ; it != end; ++it ) {
221 221
 				s += "<member>";
222 222
 				s += "<name>" + it.key() + "</name>";
@@ -267,7 +267,7 @@ TQVariant Query::demarshal( const TQDomElement &elem )
267 267
 		}
268 268
 		return TQVariant( values );
269 269
 	} else if ( typeName == "struct" ) {
270
-		TQMap<TQString, TQVariant> map;
270
+		TQStringVariantMap map;
271 271
 		TQDomNode memberNode = typeElement.firstChild();
272 272
 		while ( !memberNode.isNull() ) {
273 273
 			const TQString key = memberNode.toElement().elementsByTagName( "name" ).item( 0 ).toElement().text();

Loading…
Cancel
Save