aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/upnp/XmlFunctions.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2023-10-06 08:39:22 +0200
committerGravatar ctrlaltca2023-10-18 10:26:35 +0200
commitff61da69aa5ab7a2e75857cd936cfd282bb82900 (patch)
treef9a3b5b7e6a73dac66ac44af880f998ea4b5c196 /src/modules/upnp/XmlFunctions.cpp
parentChanges that will need to be reworked. (diff)
downloadKVIrc-ff61da69aa5ab7a2e75857cd936cfd282bb82900.tar.gz
KVIrc-ff61da69aa5ab7a2e75857cd936cfd282bb82900.tar.bz2
KVIrc-ff61da69aa5ab7a2e75857cd936cfd282bb82900.zip
Address feedback for XmlFunctions.cpp
Diffstat (limited to 'src/modules/upnp/XmlFunctions.cpp')
-rw-r--r--src/modules/upnp/XmlFunctions.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/upnp/XmlFunctions.cpp b/src/modules/upnp/XmlFunctions.cpp
index 12777a488..3847fc8b9 100644
--- a/src/modules/upnp/XmlFunctions.cpp
+++ b/src/modules/upnp/XmlFunctions.cpp
@@ -34,6 +34,7 @@
#include "XmlFunctions.h"
#include <QStringList>
+#include <QIODevice>
// Helper function, get a specific node
QDomNode XmlFunctions::getNode(const QDomNode & rootNode, const QString & path)
@@ -112,11 +113,7 @@ QString XmlFunctions::getNodeValue(const QDomNode & rootNode, const QString & pa
QString XmlFunctions::getSource(const QDomNode & node, int indent)
{
QString source;
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QTextStream textStream(&source, QIODevice::WriteOnly);
-#else
- QTextStream textStream(&source, QIODeviceBase::WriteOnly);
-#endif
node.save(textStream, indent);
return source;
}