Browse Source

Adjusted to use new TQStringVariantMap type.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 8 months ago
parent
commit
d67f68267f
Signed by: MicheleC <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 )
TQValueList<TQVariant>::ConstIterator it = feedInfos.begin();
TQValueList<TQVariant>::ConstIterator end = feedInfos.end();
for ( ; it != end; ++it ) {
const TQMap<TQString, TQVariant> feedInfo = ( *it ).toMap();
const TQStringVariantMap feedInfo = ( *it ).toMap();

const TQString name = feedInfo[ "sitename" ].toString();
const TQString link = feedInfo[ "dataurl" ].toString();


+ 4
- 4
dcoprss/xmlrpciface.cpp View File

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


Loading…
Cancel
Save