aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/upnp/XmlFunctions.cpp
diff options
context:
space:
mode:
authorGravatar ctrlaltca2023-07-08 01:38:33 +0200
committerGravatar GitHub2023-07-08 01:38:33 +0200
commit28292170d8c02743cabfabba3a1623b8d71b9aa2 (patch)
tree03c7269f527a40a5b86863db7c111f2552afe46c /src/modules/upnp/XmlFunctions.cpp
parentMerge branch 'bugfix/script-editor-out-of-range-exception' (diff)
downloadKVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.tar.gz
KVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.tar.bz2
KVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.zip
Port to (and require) Qt 5.15. Drop KDE4 support, fix KDE5 (#2541)
* Port to (and require) Qt 5.15. Drop KDE4 support, implement KDE5 support where needed. --------- Co-authored-by: Fabio Bas <fabio.bas@officineinformatiche.net>
Diffstat (limited to 'src/modules/upnp/XmlFunctions.cpp')
-rw-r--r--src/modules/upnp/XmlFunctions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/upnp/XmlFunctions.cpp b/src/modules/upnp/XmlFunctions.cpp
index c2d7caf6b..35cebb38f 100644
--- a/src/modules/upnp/XmlFunctions.cpp
+++ b/src/modules/upnp/XmlFunctions.cpp
@@ -39,7 +39,7 @@
QDomNode XmlFunctions::getNode(const QDomNode & rootNode, const QString & path)
{
- QStringList pathItems = path.split("/", QString::SkipEmptyParts);
+ QStringList pathItems = path.split("/", Qt::SkipEmptyParts);
QDomNode childNode = rootNode.namedItem(pathItems[0]); // can be a null node
int i = 1;
@@ -57,7 +57,7 @@ QDomNode XmlFunctions::getNode(const QDomNode & rootNode, const QString & path)
if(childNode.isNull())
{
qDebug() << "XmlFunctions::getNode() - Notice: node '" << pathItems[i - 1] << "'"
- << " does not exist (root=" << rootNode.nodeName() << " path=" << path << ")." << endl;
+ << " does not exist (root=" << rootNode.nodeName() << " path=" << path << ")." << Qt::endl;
}
return childNode;
@@ -79,7 +79,7 @@ QDomNode XmlFunctions::getNodeChildByKey(const QDomNodeList & childNodes, const
for(int i = 0; i < childNodes.count(); i++)
{
// kdDebug() << "node " << childNodes.item(i).nodeName() << "/" << keyTagName
- // << "=" << childNodes.item(i).namedItem(keyTagName).toElement().text() << " == " << keyValue << "?" << endl;
+ // << "=" << childNodes.item(i).namedItem(keyTagName).toElement().text() << " == " << keyValue << "?" << Qt::endl;
// If the node has an childname with a certain value... e.g. <childNodes> <item><name>value</name></item> .. </childNodes>
if(childNodes.item(i).namedItem(keyTagName).toElement().text() == keyValue)
@@ -100,7 +100,7 @@ QString XmlFunctions::getNodeValue(const QDomNode & rootNode, const QString & pa
// Added code to avoid more assertion errors, and trace the cause.
if(rootNode.isNull())
{
- qWarning() << "XmlFunctions::getNodeValue: attempted to request '" << path << "' on null root node." << endl;
+ qWarning() << "XmlFunctions::getNodeValue: attempted to request '" << path << "' on null root node." << Qt::endl;
return QString();
}