Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 250226c8 authored by Laurent Montel's avatar Laurent Montel 😁

Remove extra endl. qDebug already adds endl at the end of line

parent 839dfe73
......@@ -481,7 +481,7 @@ namespace Konversation
switch (transferJob->error())
{
case 0: // no error
qDebug() << "job->error() returned 0." << endl
qDebug() << "job->error() returned 0.\n"
<< "Why was I called in spite of no error?";
break;
case KIO::ERR_FILE_ALREADY_EXIST:
......
......@@ -211,7 +211,7 @@ namespace Konversation
if (setsockopt(fd,IPPROTO_IP,IP_ADD_MEMBERSHIP,(char *)&mreq,sizeof(struct ip_mreq)) < 0)
#endif
{
qDebug() << "Failed to join multicast group 239.255.255.250" << endl;
qDebug() << "Failed to join multicast group 239.255.255.250";
}
}
......@@ -231,7 +231,7 @@ namespace Konversation
if (setsockopt(fd,IPPROTO_IP,IP_DROP_MEMBERSHIP,(char *)&mreq,sizeof(struct ip_mreq)) < 0)
#endif
{
qDebug() << "Failed to leave multicast group 239.255.255.250" << endl;
qDebug() << "Failed to leave multicast group 239.255.255.250";
}
}
}
......
......@@ -131,7 +131,7 @@ namespace Konversation
if (j->error())
{
error = i18n("Failed to download %1: %2",location.url(),j->errorString());
qDebug() << error << endl;
qDebug() << error;
return;
}
......@@ -151,14 +151,14 @@ namespace Konversation
{
error.clear();
// downlaod XML description into a temporary file in /tmp
qDebug() << "Downloading XML file " << location << endl;
qDebug() << "Downloading XML file " << location;
KIO::Job* job = KIO::storedGet(location,KIO::NoReload, KIO::Overwrite | KIO::HideProgressInfo);
connect(job, &KIO::Job::result, this, &UPnPRouter::downloadFinished);
}
KJob *UPnPRouter::getStatusInfo(const UPnPService &s)
{
qDebug() << "UPnP - Checking service status: " << s.servicetype << endl;
qDebug() << "UPnP - Checking service status: " << s.servicetype;
QString action = QStringLiteral("GetStatusInfo");
QString comm = SOAP::createCommand(action,s.servicetype);
......@@ -168,7 +168,7 @@ namespace Konversation
bool UPnPRouter::forward(const QHostAddress & host, quint16 port, QAbstractSocket::SocketType proto)
{
qDebug() << "Forwarding port " << host.toString() << port << " (" << (proto == QAbstractSocket::TcpSocket ? "TCP" : "UDP") << ")" << endl;
qDebug() << "Forwarding port " << host.toString() << port << " (" << (proto == QAbstractSocket::TcpSocket ? "TCP" : "UDP") << ")";
if (service.ready)
{
......@@ -252,7 +252,7 @@ namespace Konversation
bool UPnPRouter::undoForward(quint16 port, QAbstractSocket::SocketType proto)
{
qDebug() << "Undoing forward of port " << port
<< " (" << (proto == QAbstractSocket::TcpSocket ? "TCP" : "UDP") << ")" << endl;
<< " (" << (proto == QAbstractSocket::TcpSocket ? "TCP" : "UDP") << ")";
if (service.ready)
{
......@@ -349,7 +349,7 @@ namespace Konversation
{
if (r->error())
{
qDebug() << "UPnPRouter : Error: " << r->errorString() << endl;
qDebug() << "UPnPRouter : Error: " << r->errorString();
if (pending_services.contains(r))
{
......@@ -375,7 +375,7 @@ namespace Konversation
QString reply(soap_data_in[r]);
soap_data_in[r].clear();
qDebug() << "UPnPRouter : OK:" << endl;
qDebug() << "UPnPRouter : OK:";
if (pending_services.contains(r))
{
......@@ -385,7 +385,7 @@ namespace Konversation
service = pending_services[r];
service.ready = true;
qDebug() << "Found connected service: " << service.servicetype << endl;
qDebug() << "Found connected service: " << service.servicetype;
}
pending_services.remove(r);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment