diff options
| author | 2008-09-24 08:30:54 +0000 | |
|---|---|---|
| committer | 2008-09-24 08:30:54 +0000 | |
| commit | edc59c8a19f05f8b3eca59eb0a20ac7532634845 (patch) | |
| tree | d8407c7c5c61bd48fe035fd3387600827c6aaff4 /src/modules/upnp/xmlfunctions.cpp | |
| parent | forward-port newline fix, refs r2540 (diff) | |
| download | KVIrc-edc59c8a19f05f8b3eca59eb0a20ac7532634845.tar.gz KVIrc-edc59c8a19f05f8b3eca59eb0a20ac7532634845.tar.bz2 KVIrc-edc59c8a19f05f8b3eca59eb0a20ac7532634845.zip | |
finished porting of module upnp to pure qt4
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2543 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/upnp/xmlfunctions.cpp')
| -rw-r--r-- | src/modules/upnp/xmlfunctions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/upnp/xmlfunctions.cpp b/src/modules/upnp/xmlfunctions.cpp index d50c735d8..b23c8235c 100644 --- a/src/modules/upnp/xmlfunctions.cpp +++ b/src/modules/upnp/xmlfunctions.cpp @@ -40,7 +40,7 @@ QDomNode XmlFunctions::getNode( const QDomNode &rootNode, const QString &path ) { - QStringList pathItems = QStringList::split( "/", path, false ); + QStringList pathItems = path.split( "/", QString::SkipEmptyParts ); QDomNode childNode = rootNode.namedItem( pathItems[0] ); // can be a null node uint i = 1; @@ -120,7 +120,7 @@ QString XmlFunctions::getNodeValue( const QDomNode &rootNode, const QString &pat QString XmlFunctions::getSource( const QDomNode &node, int indent ) { QString source; - QTextStream textStream( &source, IO_WriteOnly ); + QTextStream textStream( &source, QIODevice::WriteOnly ); node.save( textStream, indent ); return source; } |
