From 28292170d8c02743cabfabba3a1623b8d71b9aa2 Mon Sep 17 00:00:00 2001 From: ctrlaltca Date: Sat, 8 Jul 2023 01:38:33 +0200 Subject: 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 --- src/modules/upnp/WanConnectionService.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules/upnp/WanConnectionService.cpp') diff --git a/src/modules/upnp/WanConnectionService.cpp b/src/modules/upnp/WanConnectionService.cpp index efbe87b73..1ea6223d3 100644 --- a/src/modules/upnp/WanConnectionService.cpp +++ b/src/modules/upnp/WanConnectionService.cpp @@ -96,7 +96,7 @@ namespace UPnP void WanConnectionService::gotActionResponse(const QString & responseType, const QMap & resultValues) { qDebug() << "UPnP::WanConnectionService: parsing action response:" - << " type='" << responseType << "'." << endl; + << " type='" << responseType << "'." << Qt::endl; // Check the message type if(responseType == "GetExternalIPAddressResponse") @@ -104,14 +104,14 @@ namespace UPnP // Get the external IP address from the response m_szExternalIpAddress = resultValues["NewExternalIPAddress"]; - qDebug() << "UPnP::WanConnectionService: externalIp='" << m_szExternalIpAddress << "'." << endl; + qDebug() << "UPnP::WanConnectionService: externalIp='" << m_szExternalIpAddress << "'." << Qt::endl; } else if(responseType == "GetNATRSIPStatusResponse") { // Get the nat status from the response m_bNatEnabled = (resultValues["NewNATEnabled"] == "1"); - qDebug() << "UPnP::WanConnectionService: natEnabled=" << m_bNatEnabled << "." << endl; + qDebug() << "UPnP::WanConnectionService: natEnabled=" << m_bNatEnabled << "." << Qt::endl; } else if(responseType == "GetGenericPortMappingEntryResponse") { @@ -133,20 +133,20 @@ namespace UPnP qDebug() << "UPnP::WanConnectionService - Received mapping: " << map->protocol << " " << map->remoteHost << ":" << map->externalPort << " to " << map->internalClient << ":" << map->internalPort - << " max " << map->leaseDuration << "s '" << map->description << "' " << (map->enabled ? "enabled" : "disabled") << endl; + << " max " << map->leaseDuration << "s '" << map->description << "' " << (map->enabled ? "enabled" : "disabled") << Qt::endl; } else if(responseType == "AddPortMappingResponse") { - qDebug() << "UPnP::WanConnectionService - Received mapping enabled" << endl; + qDebug() << "UPnP::WanConnectionService - Received mapping enabled" << Qt::endl; } else if(responseType == "DeletePortMappingResponse") { - qDebug() << "UPnP::WanConnectionService - Received mapping disabled" << endl; + qDebug() << "UPnP::WanConnectionService - Received mapping disabled" << Qt::endl; } else { qDebug() << "UPnP::WanConnectionService - Unexpected response type" - << " '" << responseType << "' encountered." << endl; + << " '" << responseType << "' encountered." << Qt::endl; } } -- cgit v1.3.1-10-gc9f91