[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepimlibs/mailtransport (silent)
From:       Allen Winter <winter () kde ! org>
Date:       2008-10-20 23:31:25
Message-ID: 1224545485.871868.30329.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 874215 by winterz:

minor coding style fixes
SVN_SILENT:


 M  +1 -1      servertest.cpp  
 M  +5 -4      smtpjob.cpp  
 M  +9 -10     transportconfigdialog.cpp  


--- trunk/KDE/kdepimlibs/mailtransport/servertest.cpp #874214:874215
@@ -373,7 +373,7 @@
       normalSocket->write( QLatin1String( "STLS" ) );
     } else if ( testProtocol == IMAP_PROTOCOL ) {
       normalSocket->write( QLatin1String( "2 STARTTLS" ) );
-    } else  {
+    } else {
       normalSocket->write( QLatin1String( "STARTTLS" ) );
     }
     encryptionMode = Transport::EnumEncryption::TLS;
--- trunk/KDE/kdepimlibs/mailtransport/smtpjob.cpp #874214:874215
@@ -133,13 +133,13 @@
   destination.addQueryItem( QLatin1String( "headers" ), QLatin1String( "0" ) );
   destination.addQueryItem( QLatin1String( "from" ), sender() );
 
-  foreach ( const QString& str, to() ) {
+  foreach ( const QString &str, to() ) {
     destination.addQueryItem( QLatin1String( "to" ), str );
   }
-  foreach ( const QString& str, cc() ) {
+  foreach ( const QString &str, cc() ) {
     destination.addQueryItem( QLatin1String( "cc" ), str );
   }
-  foreach ( const QString& str, bcc() ) {
+  foreach ( const QString &str, bcc() ) {
     destination.addQueryItem( QLatin1String( "bcc" ), str );
   }
 
@@ -277,8 +277,9 @@
   // To prevent that, we call TransportJob::slotResult() only after removing the
   // slave from the pool and calculate the error code ourselves.
   int errorCode = error();
-  if ( !errorCode )
+  if ( !errorCode ) {
     errorCode = job->error();
+  }
 
   if ( errorCode && d->currentState == SmtpJobPrivate::Smtp ) {
     s_slavePool->removeSlave( d->slave, errorCode != KIO::ERR_SLAVE_DIED );
--- trunk/KDE/kdepimlibs/mailtransport/transportconfigdialog.cpp #874214:874215
@@ -41,17 +41,16 @@
 
 class BusyCursorHelper : public QObject
 {
-public:
-  inline BusyCursorHelper( QObject *parent )
-         : QObject( parent )
-  {
-    qApp->setOverrideCursor( Qt::BusyCursor );
-  }
+  public:
+    inline BusyCursorHelper( QObject *parent ) : QObject( parent )
+    {
+      qApp->setOverrideCursor( Qt::BusyCursor );
+    }
 
-  inline ~BusyCursorHelper()
-  {
-    qApp->restoreOverrideCursor();
-  }
+    inline ~BusyCursorHelper()
+    {
+      qApp->restoreOverrideCursor();
+    }
 };
 
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic