From ff61da69aa5ab7a2e75857cd936cfd282bb82900 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 6 Oct 2023 08:39:22 +0200 Subject: [PATCH] Address feedback for XmlFunctions.cpp --- src/modules/upnp/XmlFunctions.cpp | 5 +---- 1 file changed, 1 insertion(+), 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 +#include // 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; }