All pastes #1328429 Raw Edit

neoclust

public text v1 · immutable
#1328429 ·published 2009-02-05 22:33 UTC
rendered paste body
Index: irc/server.cpp===================================================================--- irc/server.cpp	(revision 921903)+++ irc/server.cpp	(working copy)@@ -138,7 +138,7 @@ Server::~Server() {     //send queued messages-    kDebug() << "Server::~Server(" << getServerName() << ")" << endl;+    kDebug() << "Server::~Server(" << getServerName() << ")";      // Delete helper object.     delete m_serverISON;@@ -185,7 +185,7 @@      emit destroyed(m_connectionId); -    kDebug() << "~Server done" << endl;+    kDebug() << "~Server done"; }  //... so called to match the ChatWindow derivatives.@@ -423,7 +423,7 @@         m_inputFilter.reset();     }     else-        kDebug() << "connectToIRCServer() called while already connected: This should never happen." << endl;+        kDebug() << "connectToIRCServer() called while already connected: This should never happen."; }  /*@@ -566,7 +566,7 @@  void Server::broken(QAbstractSocket::SocketError state) {-    kDebug() << "Connection broken " << m_socket->errorString() << "!" << endl;+    kDebug() << "Connection broken " << m_socket->errorString() << "!";      m_socket->blockSignals(true); @@ -708,7 +708,7 @@     if (res.error() == QHostInfo::NoError && !res.addresses().isEmpty())         m_ownIpByWelcome = res.addresses().first().toString();     else-        kDebug() << "Server::gotOwnResolvedHostByWelcome(): Got error: " << res.errorString() << endl;+        kDebug() << "Got error: " << res.errorString(); }  void Server::quitServer()@@ -1478,7 +1478,7 @@  void Server::closeChannel(const QString& name) {-    kDebug() << "Server::closeChannel(" << name << ")" << endl;+    kDebug() << "Server::closeChannel(" << name << ")";     Channel* channelToClose = getChannelByName(name);      if(channelToClose)@@ -1635,7 +1635,7 @@ {     if (transfer->getConnectionId() == connectionId() )     {-        kDebug() << "Server::slotNewDccTranfserItemQueued(): connecting slots for " << transfer->getFileName() << " [" << transfer->getType() << "]" << endl;+        kDebug() << "connecting slots for " << transfer->getFileName() << " [" << transfer->getType() << "]";         if ( transfer->getType() == DccTransfer::Receive )         {             connect( transfer, SIGNAL( done( DccTransfer* ) ), this, SLOT( dccGetDone( DccTransfer* ) ) );@@ -2013,14 +2013,14 @@ /*             if(parameter.isEmpty())             {-                kDebug() << "in updateChannelMode, a nick with no-name has had their mode '" << mode << "' changed to (" <<plus << ") in channel '" << channelName << "' by " << updater << ".  How this happened, I have no idea.  Please report this message to irc #konversation if you want to be helpful." << endl << "Ignoring the error and continuing." << endl;+                kDebug() << "in updateChannelMode, a nick with no-name has had their mode '" << mode << "' changed to (" <<plus << ") in channel '" << channelName << "' by " << updater << ".  How this happened, I have no idea.  Please report this message to irc #konversation if you want to be helpful." << endl << "Ignoring the error and continuing.";                                                   //this will get their attention.-                kDebug() << kBacktrace() << endl;+                kDebug() << kBacktrace();             }             else             {-                kDebug() << "in updateChannelMode, could not find updatee nick " << parameter << " for channel " << channelName << endl;-                kDebug() << "This could indicate an obscure race condition that is safely being handled (like the mode of someone changed and they quit almost simulatanously, or it could indicate an internal error." << endl;+                kDebug() << "in updateChannelMode, could not find updatee nick " << parameter << " for channel " << channelName;+                kDebug() << "This could indicate an obscure race condition that is safely being handled (like the mode of someone changed and they quit almost simulatanously, or it could indicate an internal error.";             } */             //TODO Do we need to add this nick?@@ -2507,7 +2507,7 @@     }     else     {-        kDebug() << "server::renameNickInfo() was called for newname='" << newname << "' but nickInfo is null" << endl;+        kDebug() << "server::renameNickInfo() was called for newname='" << newname << "' but nickInfo is null";     } } @@ -2602,7 +2602,7 @@ {     if(nickname.isEmpty() || newNick.isEmpty())     {-        kDebug() << "server::renameNick called with empty strings!  Trying to rename '" << nickname << "' to '" << newNick << "'" << endl;+        kDebug() << "server::renameNick called with empty strings!  Trying to rename '" << nickname << "' to '" << newNick << "'";         return;     } @@ -2620,7 +2620,7 @@      if(!nickInfo)     {-        kDebug() << "server::renameNick called for nickname '" << nickname << "' to '" << newNick << "' but getNickInfo('" << nickname << "') returned no results." << endl;+        kDebug() << "server::renameNick called for nickname '" << nickname << "' to '" << newNick << "' but getNickInfo('" << nickname << "') returned no results.";     }     else     {@@ -2667,7 +2667,7 @@     if ( res.error() == QHostInfo::NoError && !res.addresses().isEmpty() )         m_ownIpByUserhost = res.addresses().first().toString();     else-        kDebug() << "Server::gotOwnResolvedHostByUserhost(): Got error: " << res.errorString() << endl;+        kDebug() << "Got error: " << res.errorString(); }  void Server::appendServerMessageToChannel(const QString& channel,const QString& type,const QString& message)@@ -3276,7 +3276,7 @@     {         m_currentLag = m_lagTime.elapsed();         emit tooLongLag(this, m_currentLag);-        // kDebug() << "Current lag: " << currentLag << endl;+        // kDebug() << "Current lag: " << currentLag;          if (m_currentLag > (Preferences::self()->maximumLagTime() * 1000))             m_socket->close();Index: irc/channelnick.cpp===================================================================--- irc/channelnick.cpp	(revision 921903)+++ irc/channelnick.cpp	(working copy)@@ -223,7 +223,7 @@         tooltip << "<tr><td><b>" << i18n("Mode") << ": </b></td><td>" << modes.join(", ") << "</td></tr>";     }     tooltip << "</table></qt>";-    //kDebug() << strTooltip << endl;+    //kDebug() << strTooltip ;     //if(!dirty) return QString();     return strTooltip; }Index: dbus.cpp===================================================================--- dbus.cpp	(revision 921903)+++ dbus.cpp	(working copy)@@ -38,7 +38,7 @@  void DBus::raw(const QString& server,const QString& command) {-    kDebug() << "DBus::raw()" << endl;+    kDebug();     // send raw IRC protocol data     emit dcopRaw(server,command); }@@ -107,7 +107,7 @@     // TODO: this just masks a greater problem - Server::addQuery will return a query for '' --argonel     // TODO: other DCOP calls need argument checking too --argonel     if (server.isEmpty() || target.isEmpty() || command.isEmpty())-        kDebug() <<  "DBus::say() requires 3 arguments." << endl;+        kDebug() <<  "DBus::say() requires 3 arguments.";     else     {         command.replace('\n',"\\n");@@ -123,19 +123,19 @@  void DBus::info(const QString& string) {-    kDebug() << "DBus::info()" << endl;+    kDebug();     emit dcopInfo(string); }  void DBus::debug(const QString& string) {-    kDebug() << "DBus::debug()" << endl;+    kDebug();     emit dcopInfo(QString("Debug: %1").arg(string)); }  void DBus::error(const QString& string) {-    kDebug() << "DBus::error()" << endl;+    kDebug();     emit dcopInfo(QString("Error: %1").arg(string)); } Index: urlcatcher.cpp===================================================================--- urlcatcher.cpp	(revision 921903)+++ urlcatcher.cpp	(working copy)@@ -151,7 +151,7 @@         QStringList cmdAndArgs = KShell::splitArgs(cmd);         *proc << cmdAndArgs;         //    This code will also work, but starts an extra shell process.-        //    kDebug() << "UrlCatcher::openUrl(): cmd = " << cmd << endl;+        //    kDebug() "cmd = " << cmd;         //    *proc << cmd;         //    proc->setUseShell(true);         proc->startDetached();