Skip to content

Commit

Permalink
Address feedback for XmlFunctions.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Oct 6, 2023
1 parent 372410b commit 4e92219
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/upnp/XmlFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}

0 comments on commit 4e92219

Please sign in to comment.