From 027165c1b3b388d913866be27b568b3ac027c64e Mon Sep 17 00:00:00 2001 From: mlaurent Date: Fri, 16 Nov 2007 12:01:49 +0000 Subject: [PATCH] Remove "endl;" not necessary now git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdenetwork@737505 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kget/core/speedlimiter.cpp | 10 +++++----- kget/transfer-plugins/bittorrent/bttransfer.cpp | 12 ++++++------ kopete/kopete/kopetewindow.cpp | 2 +- kopete/libkopete/kopeteaccountmanager.cpp | 2 +- kopete/libkopete/kopeteidentitymanager.cpp | 8 ++++---- kopete/libkopete/kopeteproperty.cpp | 10 +++++----- .../plugins/urlpicpreview/urlpicpreviewplugin.cpp | 2 +- kopete/protocols/oscar/icq/icqcontact.cpp | 2 +- kopete/protocols/oscar/liboscar/buffer.cpp | 14 +++++++------- kopete/protocols/oscar/liboscar/client.cpp | 2 +- krdc/config/hostpreferenceslist.cpp | 2 +- krdc/hostpreferences.cpp | 2 +- krfb/x11framebuffer.cpp | 22 +++++++++++----------- 13 files changed, 45 insertions(+), 45 deletions(-) diff --git a/kget/core/speedlimiter.cpp b/kget/core/speedlimiter.cpp index d488c0a05..7bcbaf695 100644 --- a/kget/core/speedlimiter.cpp +++ b/kget/core/speedlimiter.cpp @@ -40,7 +40,7 @@ void KSpeedLimiter::addJob(KJob *job) if(!m_speedLimit) return; m_JobSpeedLimiters << new KJobSpeedLimiter(job, m_speedLimit); - kDebug(5001) << "Limiting job:" << job << " speed to: " << m_speedLimit << endl; + kDebug(5001) << "Limiting job:" << job << " speed to: " << m_speedLimit; } @@ -69,19 +69,19 @@ void KJobSpeedLimiter::slotOnTimer() int elapsed = m_time.restart(); QString status = isSuspended() ? QString("suspended") : QString("running"); - kDebug(5001) << "Status: " << status << " expected time: " << expected << " elapsed time: " << elapsed << endl; + kDebug(5001) << "Status: " << status << " expected time: " << expected << " elapsed time: " << elapsed; if (expected > elapsed) { m_OnTime = (elapsed * 4500)/expected; m_OffTime = 4500 - m_OnTime; suspend(); - kDebug(5001) << "sleeping for: " << m_OffTime << " msegs." << endl; + kDebug(5001) << "sleeping for: " << m_OffTime << " msegs."; QTimer::singleShot(m_OffTime, this, SLOT(slotOffTimer())); } else { - kDebug(5001) << "speed below limit, checking in 500 msegs " << endl; + kDebug(5001) << "speed below limit, checking in 500 msegs "; resume(); QTimer::singleShot(500, this, SLOT(slotOnTimer())); } @@ -91,7 +91,7 @@ void KJobSpeedLimiter::slotOffTimer() { resume(); m_time.restart(); - kDebug(5001) << "resuming for: " << m_OnTime << " msegs." << endl; + kDebug(5001) << "resuming for: " << m_OnTime << " msegs."; QTimer::singleShot(m_OnTime, this, SLOT(slotOnTimer())); } diff --git a/kget/transfer-plugins/bittorrent/bttransfer.cpp b/kget/transfer-plugins/bittorrent/bttransfer.cpp index 95ed3f147..e9990abc7 100644 --- a/kget/transfer-plugins/bittorrent/bttransfer.cpp +++ b/kget/transfer-plugins/bittorrent/bttransfer.cpp @@ -119,7 +119,7 @@ void BTTransfer::start() void BTTransfer::stop() { - kDebug(5001) << endl << "bt stopped" << endl; + kDebug(5001) << endl << "bt stopped"; timer.stop(); if (download.is_valid()) { @@ -148,7 +148,7 @@ int BTTransfer::remainingTime() const void BTTransfer::resume() { - kDebug(5001) << endl << "resume dl" << endl; + kDebug(5001) << endl << "resume dl"; if (!download.is_valid()) { try @@ -189,7 +189,7 @@ void BTTransfer::resume() { if (!download.is_open()) { - kDebug(5001) << endl << "second turn" << endl; + kDebug(5001) << endl << "second turn"; download.open(); } if (!download.is_hash_checked()) @@ -199,7 +199,7 @@ void BTTransfer::resume() } try { - kDebug(5001) << endl << "third turn" << endl; + kDebug(5001) << endl << "third turn"; setStatus(status(), i18n("Connecting.."), SmallIcon("connect-creating")); setTransferChange(Tc_Status, true); @@ -208,7 +208,7 @@ void BTTransfer::resume() catch (std::exception& e) { // the line below only compiles with exceptions activated - // kDebug(5001) << "Resume exception " << e.what() << endl; + // kDebug(5001) << "Resume exception " << e.what(); } timer.start(1 * 1000); return; @@ -217,7 +217,7 @@ void BTTransfer::resume() void BTTransfer::remove() { - kDebug(5001) << endl << "bt removed" << endl; + kDebug(5001) << endl << "bt removed"; timer.stop(); if (download.is_valid() && download.is_active()) { diff --git a/kopete/kopete/kopetewindow.cpp b/kopete/kopete/kopetewindow.cpp index 67cf033f7..506c3e268 100644 --- a/kopete/kopete/kopetewindow.cpp +++ b/kopete/kopete/kopetewindow.cpp @@ -894,7 +894,7 @@ void KopeteWindow::slotAccountUnregistered( const Kopete::Account *account ) QAction *action = actionCollection()->action( s ); if ( action ) { - kDebug(14000) << " found KAction " << action << " with name: " << action->objectName() << endl; + kDebug(14000) << " found KAction " << action << " with name: " << action->objectName(); d->addContactMapper->removeMappings( action ); d->actionAddContact->removeAction( action ); } diff --git a/kopete/libkopete/kopeteaccountmanager.cpp b/kopete/libkopete/kopeteaccountmanager.cpp index e3da1808a..d3415fddb 100644 --- a/kopete/libkopete/kopeteaccountmanager.cpp +++ b/kopete/libkopete/kopeteaccountmanager.cpp @@ -104,7 +104,7 @@ bool AccountManager::isAnyAccountConnected() const void AccountManager::setOnlineStatus( uint category, const QString& awayMessage, uint flags ) { - kDebug() << "category: " << category << ", Kopete::OnlineStatusManager::Away: " << Kopete::OnlineStatusManager::Away << endl; + kDebug() << "category: " << category << ", Kopete::OnlineStatusManager::Away: " << Kopete::OnlineStatusManager::Away; OnlineStatusManager::Categories categories = (OnlineStatusManager::Categories)category; diff --git a/kopete/libkopete/kopeteidentitymanager.cpp b/kopete/libkopete/kopeteidentitymanager.cpp index 4301e9401..94caf0666 100644 --- a/kopete/libkopete/kopeteidentitymanager.cpp +++ b/kopete/libkopete/kopeteidentitymanager.cpp @@ -107,7 +107,7 @@ Identity* IdentityManager::registerIdentity( Identity *identity ) void IdentityManager::unregisterIdentity( const Identity *identity ) { - kDebug( 14010 ) << "Unregistering identity " << identity->id() << endl; + kDebug( 14010 ) << "Unregistering identity " << identity->id(); d->identities.removeAll( const_cast(identity) ); emit identityUnregistered( identity ); @@ -199,7 +199,7 @@ void IdentityManager::save() KConfigGroup group = KGlobal::config()->group("IdentityManager"); group.writeEntry("DefaultIdentity", d->defaultIdentity->id()); - //kDebug( 14010 ) << endl; + //kDebug( 14010 ); foreach( Identity *identity, d->identities ) { KConfigGroup *config = identity->configGroup(); @@ -232,7 +232,7 @@ void IdentityManager::load() "Failed to create identity for '" << identityId << "'" << endl; continue; } - kDebug() << "Created identity " << identityId << endl; + kDebug() << "Created identity " << identityId; } // get the default identity @@ -249,7 +249,7 @@ void IdentityManager::load() void IdentityManager::slotIdentityOnlineStatusChanged(Identity *i) { //TODO: check if we need to do something more on status changes - //kDebug(14010) << endl; + //kDebug(14010); emit identityOnlineStatusChanged(i); } diff --git a/kopete/libkopete/kopeteproperty.cpp b/kopete/libkopete/kopeteproperty.cpp index 5154c7c1b..48c6b6dbf 100644 --- a/kopete/libkopete/kopeteproperty.cpp +++ b/kopete/libkopete/kopeteproperty.cpp @@ -53,7 +53,7 @@ PropertyTmpl::PropertyTmpl(const QString &key, PropertyTmpl other = Kopete::Global::Properties::self()->tmpl(key); if(other.isNull()) { -// kDebug(14000) << "Creating new template for key = '" << key << "'" << endl; +// kDebug(14000) << "Creating new template for key = '" << key << "'"; d = new Private; d->refCount = 1; @@ -65,7 +65,7 @@ PropertyTmpl::PropertyTmpl(const QString &key, } else { -// kDebug(14000) << "Using existing template for key = '" << key << "'" << endl; +// kDebug(14000) << "Using existing template for key = '" << key << "'"; d = other.d; d->refCount++; } @@ -82,12 +82,12 @@ PropertyTmpl &PropertyTmpl::operator=( { if (this == &other) { -// kDebug(14000) << "trying to assign this to itself!" << endl; +// kDebug(14000) << "trying to assign this to itself!"; return *this; } if( d == other.d ) { -// kDebug(14000) << "trying to assign d to itself!" << endl; +// kDebug(14000) << "trying to assign d to itself!"; return *this; } d->refCount--; @@ -216,7 +216,7 @@ Property& Property::operator=(const Property& other) { if (this == &other) { -// kDebug(14000) << "trying to assign this to itself!" << endl; +// kDebug(14000) << "trying to assign this to itself!"; return *this; } diff --git a/kopete/plugins/urlpicpreview/urlpicpreviewplugin.cpp b/kopete/plugins/urlpicpreview/urlpicpreviewplugin.cpp index ffbef3b1d..533d171d5 100644 --- a/kopete/plugins/urlpicpreview/urlpicpreviewplugin.cpp +++ b/kopete/plugins/urlpicpreview/urlpicpreviewplugin.cpp @@ -168,7 +168,7 @@ QString URLPicPreviewPlugin::prepareBody ( const QString& parsedBody, uint previ */ void URLPicPreviewPlugin::readyForUnload() { - kDebug ( 14314 ) << endl; + kDebug ( 14314 ); m_abortMessageCheck = true; emit abortAllOperations(); } diff --git a/kopete/protocols/oscar/icq/icqcontact.cpp b/kopete/protocols/oscar/icq/icqcontact.cpp index c7ba06c36..f2bd31a24 100644 --- a/kopete/protocols/oscar/icq/icqcontact.cpp +++ b/kopete/protocols/oscar/icq/icqcontact.cpp @@ -312,7 +312,7 @@ void ICQContact::receivedShortInfo( const QString& contact ) if ( m_ssiItem.alias().isEmpty() && !shortInfo.nickname.isEmpty() ) { - kDebug(OSCAR_ICQ_DEBUG) << "setting new displayname for former UIN-only Contact" << endl; + kDebug(OSCAR_ICQ_DEBUG) << "setting new displayname for former UIN-only Contact"; setProperty( Kopete::Global::Properties::self()->nickName(), codec->toUnicode( shortInfo.nickname ) ); } } diff --git a/kopete/protocols/oscar/liboscar/buffer.cpp b/kopete/protocols/oscar/liboscar/buffer.cpp index 3ea024f66..1fdb31606 100644 --- a/kopete/protocols/oscar/liboscar/buffer.cpp +++ b/kopete/protocols/oscar/liboscar/buffer.cpp @@ -183,7 +183,7 @@ Oscar::BYTE Buffer::getByte() mReadPos++; } else - kDebug(14150) << "Buffer::getByte(): mBuffer empty" << endl; + kDebug(14150) << "Buffer::getByte(): mBuffer empty"; return thebyte; } @@ -247,7 +247,7 @@ QByteArray Buffer::getBlock(Oscar::DWORD len) { if ( len > (Oscar::DWORD)(mBuffer.size() - mReadPos) ) { - kDebug(14150) << "Buffer::getBlock(DWORD): mBuffer underflow!!!" << endl; + kDebug(14150) << "Buffer::getBlock(DWORD): mBuffer underflow!!!"; len = mBuffer.size() - mReadPos; } @@ -272,7 +272,7 @@ QByteArray Buffer::getBBlock(Oscar::WORD len) Oscar::WORD *Buffer::getWordBlock(Oscar::WORD len) { - kDebug(14150) << "of length " << len << endl; + kDebug(14150) << "of length " << len; Oscar::WORD *ch=new Oscar::WORD[len+1]; for (unsigned int i=0; i Buffer::getTLVList() t = getTLV(); if ( !t ) { - kDebug(14150) << "Invalid TLV found" << endl; + kDebug(14150) << "Invalid TLV found"; continue; } - //kDebug(14150) << "got TLV(" << t.type << ")" << endl; + //kDebug(14150) << "got TLV(" << t.type << ")"; ql.append(t); } diff --git a/kopete/protocols/oscar/liboscar/client.cpp b/kopete/protocols/oscar/liboscar/client.cpp index af78189fa..a40d5d9a3 100644 --- a/kopete/protocols/oscar/liboscar/client.cpp +++ b/kopete/protocols/oscar/liboscar/client.cpp @@ -975,7 +975,7 @@ void Client::changeContactAlias( const QString& contact, const QString& alias ) return; } - kDebug( OSCAR_RAW_DEBUG ) << "Changing " << contact << "'s alias to " << alias << endl; + kDebug( OSCAR_RAW_DEBUG ) << "Changing " << contact << "'s alias to " << alias; SSIModifyTask* ssimt = new SSIModifyTask( c->rootTask() ); if ( ssimt->modifyContact( oldItem, item ) ) ssimt->go( Task::AutoDelete ); diff --git a/krdc/config/hostpreferenceslist.cpp b/krdc/config/hostpreferenceslist.cpp index 4f3c87606..42b3502ae 100644 --- a/krdc/config/hostpreferenceslist.cpp +++ b/krdc/config/hostpreferenceslist.cpp @@ -144,7 +144,7 @@ void HostPreferencesList::removeHost() QFile file(m_filename); if (!file.open(QFile::WriteOnly | QFile::Text)) { - kWarning(5010) << "Cannot write " << m_filename << ". " << file.errorString() << endl; + kWarning(5010) << "Cannot write " << m_filename << ". " << file.errorString(); } QTextStream out(&file); diff --git a/krdc/hostpreferences.cpp b/krdc/hostpreferences.cpp index a01447e3d..f104d25e6 100644 --- a/krdc/hostpreferences.cpp +++ b/krdc/hostpreferences.cpp @@ -119,7 +119,7 @@ bool HostPreferences::saveConfig() QFile file(m_filename); if (!file.open(QFile::WriteOnly | QFile::Text)) { - kWarning(5010) << "Cannot write " << m_filename << ". " << file.errorString() << endl; + kWarning(5010) << "Cannot write " << m_filename << ". " << file.errorString(); return false; } diff --git a/krfb/x11framebuffer.cpp b/krfb/x11framebuffer.cpp index d8f0e4ea8..53dcb96e5 100644 --- a/krfb/x11framebuffer.cpp +++ b/krfb/x11framebuffer.cpp @@ -55,7 +55,7 @@ X11FrameBuffer::X11FrameBuffer(WId id, QObject* parent) { #ifdef HAVE_XSHM d->useShm = XShmQueryExtension(QX11Info::display()); - kDebug() << "shm: " << d->useShm << endl; + kDebug() << "shm: " << d->useShm; #else d->useShm = false; #endif @@ -194,24 +194,24 @@ void X11FrameBuffer::cleanupRects() { QList cpy = tiles; bool inserted = false; tiles.clear(); -// kDebug() << "before cleanup: " << cpy.size() << endl; +// kDebug() << "before cleanup: " << cpy.size(); foreach (QRect r, cpy) { if (tiles.size() > 0) { for(int i = 0; i < tiles.size(); i++) { - // kDebug() << r << tiles[i] << endl; + // kDebug() << r << tiles[i]; if (r.intersects(tiles[i])) { tiles[i] |= r; inserted = true; break; - // kDebug() << "merged into " << tiles[i] << endl; + // kDebug() << "merged into " << tiles[i]; } } if (!inserted) { tiles.append(r); - // kDebug() << "appended " << r << endl; + // kDebug() << "appended " << r; } } else { - // kDebug() << "appended " << r << endl; + // kDebug() << "appended " << r; tiles.append(r); } } @@ -230,7 +230,7 @@ void X11FrameBuffer::cleanupRects() { tiles[i].setRight(d->framebufferImage->width); } } -// kDebug() << "after cleanup: " << tiles.size() << endl; +// kDebug() << "after cleanup: " << tiles.size(); } void X11FrameBuffer::acquireEvents() { @@ -255,7 +255,7 @@ QList< QRect > X11FrameBuffer::modifiedTiles() #ifdef HAVE_XSHM foreach(QRect r, tiles) { -// kDebug() << r << endl; +// kDebug() << r; gl |= r; int y = r.y(); int x = r.x(); @@ -267,7 +267,7 @@ QList< QRect > X11FrameBuffer::modifiedTiles() if (x+d->updateTile->width > d->framebufferImage->width) { x = d->framebufferImage->width - d->updateTile->width; } -// kDebug() << "x: " << x << " (" << r.x() << ") y: " << y << " (" << r.y() << ") " << r << endl; +// kDebug() << "x: " << x << " (" << r.x() << ") y: " << y << " (" << r.y() << ") " << r; XShmGetImage(QX11Info::display(), win, d->updateTile, x, y, AllPlanes); int pxsize = d->framebufferImage->bits_per_pixel / 8; char *dest = fb + ((d->framebufferImage->bytes_per_line * y) + (x*pxsize)); @@ -301,8 +301,8 @@ QList< QRect > X11FrameBuffer::modifiedTiles() } } } -// kDebug() << "tot: " << gl << endl; -// kDebug() << tiles.size() << endl; +// kDebug() << "tot: " << gl; +// kDebug() << tiles.size(); ret = tiles; tiles.clear(); return ret; -- 2.11.4.GIT