]> granicus.if.org Git - transmission/commitdiff
(trunk) one of the periodic, banal "remove-trailing-spaces from lines of source code...
authorCharles Kerr <charles@transmissionbt.com>
Sun, 12 Dec 2010 16:43:19 +0000 (16:43 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sun, 12 Dec 2010 16:43:19 +0000 (16:43 +0000)
24 files changed:
daemon/remote.c
gtk/file-list.c
gtk/makemeta-ui.c
gtk/torrent-cell-renderer.c
gtk/tr-core.c
gtk/tr-window.c
gtk/util.c
libtransmission/history.h
libtransmission/list.h
libtransmission/peer-common.h
libtransmission/session.h
libtransmission/torrent.c
libtransmission/torrent.h
libtransmission/tr-getopt.c
libtransmission/transmission.h
qt/favicon.cc
qt/file-tree.cc
qt/filterbar.cc
qt/torrent-model.cc
qt/tracker-delegate.cc
qt/tracker-delegate.h
qt/utils.h
utils/edit.c
utils/show.c

index e9efbbec6c50db204fb769ee151321c57022cf25..329269847a0697082fcd27c7cac03df19cf39c7e 100644 (file)
@@ -1006,7 +1006,7 @@ printDetails( tr_benc * top )
             if (tr_bencDictFindInt (t, "bandwidthPriority", &i))
                 printf ("  Bandwidth Priority: %s\n",
                         bandwidthPriorityNames[(i + 1) & 3]);
-   
+
             printf( "\n" );
         }
     }
@@ -1885,7 +1885,7 @@ processArgs( const char * host, int port, int argc, const char ** argv )
             fields = tr_bencDictAddList( args, "fields", 0 );
 
             if( tset != 0 ) { addIdArg( tr_bencDictFind( tset, ARGUMENTS ), id ); status |= flush( host, port, &tset ); }
-            
+
             switch( c )
             {
                 case 'i': tr_bencDictAddInt( top, "tag", TAG_DETAILS );
@@ -2008,7 +2008,7 @@ processArgs( const char * host, int port, int argc, const char ** argv )
                 targs = ensure_tset( &tset );
             else
                 sargs = ensure_sset( &sset );
-            
+
             switch( c )
             {
                 case 'd': if( targs ) {
@@ -2077,9 +2077,9 @@ processArgs( const char * host, int port, int argc, const char ** argv )
                 args = tr_bencDictFind( tadd, ARGUMENTS );
             else
                 args = ensure_tset( &tset );
-       
+
             switch( c )
-            {         
+            {
                 case 'g': addFiles( args, "files-wanted", optarg );
                           break;
                 case 'G': addFiles( args, "files-unwanted", optarg );
index ba6d1f2c6010418e99fd20319e2fbdc25bcf7225..b6d0a11f75b65ee83aedd686676ac9efe80d72cb 100644 (file)
@@ -295,7 +295,7 @@ getSelectedFilesForeach( GtkTreeModel * model,
     if( is_file )
     {
         struct ActiveData * data = gdata;
-    
+
         /* active means: if it's selected or any ancestor is selected */
 
         gboolean is_active = gtk_tree_selection_iter_is_selected( data->sel, iter );
index 6437720bcdac8908aab5aa82a7aa00603db70867..7f3c2e9a39b67359e17e837a91b6a552f2e5f165 100644 (file)
@@ -303,7 +303,7 @@ updatePiecesLabel( MakeMetaUI * ui )
                                                     builder->fileCount ),
                                 buf, builder->fileCount );
         g_string_append( gstr, "; " );
-  
+
         tr_formatter_mem_B( buf, builder->pieceSize, sizeof( buf ) );
         g_string_append_printf( gstr, gtr_ngettext( "%1$'d Piece @ %2$s",
                                                     "%1$'d Pieces @ %2$s",
index 041aa7d88ea30d14346bf573d48d5514851631d4..66cbc0a492d91f2075f3c5a4e688423e2eeb2730 100644 (file)
@@ -522,7 +522,7 @@ torrent_cell_renderer_get_size( GtkCellRenderer  * cell,
 
         if( x_offset )
             *x_offset = cell_area ? cell_area->x : 0;
-          
+
         if( y_offset )
             *y_offset = cell_area ? (int)((cell_area->height - (cell->ypad*2 +h)) / 2.0) : 0;
     }
index 9278fc41e9a17f42d09e59d5438babcb18810ffd..3e70fb42e338895d039abff81140da0970358227 100644 (file)
@@ -1181,7 +1181,7 @@ tr_core_present_window( TrCore      * core UNUSED,
     /* Setting the toggle-main-window GtkCheckMenuItem to
        make sure its state is correctly set */
     action_toggle( "toggle-main-window", TRUE);
-    
+
     *success = TRUE;
     return TRUE;
 }
index 4237e41f00d89c6ac5a07d2b68da9de834bbfeaa..d16fb6dee6e8a0f66fe4e98809e67132e855abe5 100644 (file)
@@ -864,7 +864,7 @@ void
 tr_window_set_busy( TrWindow * w, gboolean isBusy )
 {
     if( w && gtr_widget_get_realized( GTK_WIDGET( w ) ) )
-    {    
+    {
         GdkDisplay * display = gtk_widget_get_display( GTK_WIDGET( w ) );
         GdkCursor * cursor = isBusy ? gdk_cursor_new_for_display( display, GDK_WATCH ) : NULL;
 
@@ -872,6 +872,6 @@ tr_window_set_busy( TrWindow * w, gboolean isBusy )
         gdk_display_flush( display );
 
         if( cursor )
-            gdk_cursor_unref( cursor ); 
+            gdk_cursor_unref( cursor );
     }
 }
index c62f23c8becfa2c8749abfb196563d280cbddfba..5ff7858e0085f3a42e4206eba36f84af1a0f1bcf 100644 (file)
@@ -123,7 +123,7 @@ gtr_compare_double( const double a, const double b, int decimal_places )
     const int64_t ia = (int64_t)(a * pow( 10, decimal_places ) );
     const int64_t ib = (int64_t)(b * pow( 10, decimal_places ) );
     if( ia < ib ) return -1;
-    if( ia > ib ) return  1; 
+    if( ia > ib ) return  1;
     return 0;
 }
 
index 9e47a70cdb8ad542f0df86e927ca9861d203204b..843f9cd5fd9e6593f0c85f2250d3f61bb4c05edc 100644 (file)
@@ -20,7 +20,7 @@
 /**
  * A generic short-term memory object that remembers how many times
  * something happened over the last N seconds.
- * 
+ *
  * For example, it could count how many are bytes transferred
  * to estimate the speed over the last N seconds.
  */
index 3c178bb4d3ff0078a56590dbd7e6524b6c11f151..59719d753865231e1a243c35831806c9e8487edb 100644 (file)
@@ -100,12 +100,12 @@ tr_list* tr_list_find( tr_list *         list,
                        const void *      b,
                        TrListCompareFunc compare_func );
 
-/** 
- * @brief Insert in an ordered list 
- * @param list pointer to the list 
- * @param item the item to be inserted 
- * @param compare the comparison function. 
- */ 
+/**
+ * @brief Insert in an ordered list
+ * @param list pointer to the list
+ * @param item the item to be inserted
+ * @param compare the comparison function.
+ */
 void tr_list_insert_sorted( tr_list          ** list,
                             void              * data,
                             TrListCompareFunc   compare );
index 476ca628b8022eba48a5b6359d640446ca0a3772..ee6b6d88466edf70370367fdbe36b73b104f8f3d 100644 (file)
@@ -39,7 +39,6 @@ enum
         most bittorrent clients will reject requests
         larger than this size. */
     MAX_BLOCK_SIZE = ( 1024 * 16 )
-    
 };
 
 typedef enum
index 389b73519038742ae9aaf49a6bd5fb93aeb45fe9..25fb0c5d186978143cfab119aa58d85eb344e7b2 100644 (file)
@@ -181,7 +181,7 @@ struct tr_session
     struct tr_bandwidth        * bandwidth;
 
     double                       desiredRatio;
-    
+
     uint16_t                     idleLimitMinutes;
 
     struct tr_bindinfo         * public_ipv4;
@@ -226,7 +226,7 @@ const struct tr_address*  tr_sessionGetPublicAddress( const tr_session *, int tr
 
 struct tr_bindsockets * tr_sessionGetBindSockets( tr_session * );
 
-int tr_sessionCountTorrents( const tr_session * session ); 
+int tr_sessionCountTorrents( const tr_session * session );
 
 enum
 {
index 8a51d532f0a59f81fd27cde69ae9dd0828e4929a..6f8ce17a2bd0c1d1774005549bbf56b4c9c054d0 100644 (file)
@@ -2307,8 +2307,8 @@ tr_torrentPieceNeedsCheck( const tr_torrent * tor, tr_piece_index_t p )
     uint64_t unused;
     tr_file_index_t f;
     const tr_info * inf = tr_torrentInfo( tor );
-  
-    /* if we've never checked this piece, then it needs to be checked */ 
+
+    /* if we've never checked this piece, then it needs to be checked */
     if( !inf->pieces[p].timeChecked ) {
         tr_tordbg( tor, "[LAZY] piece %zu needs to be tested because it's never been tested", (size_t)p );
         return TRUE;
index f7274f6032d6da7f8db61bf11123326c5c26b178..b2df8142d71074398e717b1186aea743b9c4b56d 100644 (file)
@@ -185,7 +185,7 @@ struct tr_torrent
     time_t                     dhtAnnounce6At;
     tr_bool                    dhtAnnounceInProgress;
     tr_bool                    dhtAnnounce6InProgress;
-    
+
     time_t                     lpdAnnounceAt;
 
     uint64_t                   downloadedCur;
@@ -417,7 +417,7 @@ tr_bool tr_torrentPieceNeedsCheck( const tr_torrent * tor, tr_piece_index_t piec
 /**
  * @brief Test a piece against its info dict checksum
  * @return true if the piece's passes the checksum test
- */ 
+ */
 tr_bool tr_torrentCheckPiece( tr_torrent * tor, tr_piece_index_t pieceIndex );
 
 uint64_t tr_torrentGetCurrentSizeOnDisk( const tr_torrent * tor );
index 3522e1f9c6f57f266aa19563632d70a88cf2c557..a53363169c7391addd55278ca6832073973ffbb8 100644 (file)
@@ -60,7 +60,7 @@ getopts_usage_line( const tr_option * opt,
                     int               shortWidth,
                     int               argWidth )
 {
-    int len; 
+    int len;
     const char * longName   = opt->longName ? opt->longName : "";
     const char * shortName  = opt->shortName ? opt->shortName : "";
     const char * arg        = getArgName( opt );
index d1fc66ce3f9999e2d430e40ff9ae23ff11180576..92395987c7411ce641eae66244d0aa36f29ee011 100644 (file)
@@ -1855,7 +1855,7 @@ typedef struct tr_stat
 
     /** The last time we uploaded or downloaded piece data on this torrent. */
     time_t    activityDate;
-    
+
     /** Number of seconds since the last activity (or since started).
         -1 if activity is not seeding or downloading. */
     int    idleSecs;
index 003d0ddcdb306039f7993c432f9332fd58aa9a6c..41b6f3f10010c52c3f17412c5433b1dc9798f131 100644 (file)
@@ -52,7 +52,7 @@ Favicons :: ensureCacheDirHasBeenScanned( )
     if( !hasBeenScanned )
     {
         hasBeenScanned = true;
-   
+
         QDir cacheDir( getCacheDir( ) );
         cacheDir.mkpath( cacheDir.absolutePath( ) );
 
index 9d071b385ac0d6885d5012037cbfe4d2dd99ef18..a252e709271c068f4dae2c84e97aa0a56d3b18af 100644 (file)
@@ -696,7 +696,7 @@ FileTreeView :: eventFilter( QObject * o, QEvent * event )
     }
 
     // handle using the keyboard to toggle the
-    // wanted/unwanted state or the file priority 
+    // wanted/unwanted state or the file priority
     else if( event->type() == QEvent::KeyPress )
     {
         switch( dynamic_cast<QKeyEvent*>(event)->key() )
index 5b6116bd9221d176a583d23228b4086df05ced13..f3d4b60eea17bc2ba7c170d4ef0ee1e8551499fa 100644 (file)
@@ -265,7 +265,7 @@ FilterBar :: createActivityCombo( )
 
 /****
 *****
-*****  
+*****
 *****
 ****/
 
@@ -385,7 +385,7 @@ FilterBar :: createTrackerCombo( QStandardItemModel * model )
 
 /****
 *****
-*****  
+*****
 *****
 ****/
 
@@ -413,7 +413,7 @@ FilterBar :: FilterBar( Prefs& prefs, TorrentModel& torrents, TorrentFilter& fil
     myTrackerCombo = createTrackerCombo( myTrackerModel );
     h->addWidget( myTrackerCombo, 1 );
     h->addSpacing( hmargin*2 );
-    
+
     myLineEdit = new QLineEdit( this );
     h->addWidget( myLineEdit );
     connect( myLineEdit, SIGNAL(textChanged(QString)), this, SLOT(onTextChanged(QString)));
index 5f87a1c2a6a1e9979d2c20f93f7c6cd9d728adff..22163e0cde5e3b7e406f550231f633980776e7d2 100644 (file)
@@ -216,7 +216,7 @@ TorrentModel :: removeTorrent( int id )
 
         beginRemoveRows( QModelIndex(), row, row );
         // make the myIdToRow map consistent with list view/model
-        for( QMap<int,int>::iterator i = myIdToRow.begin(); i != myIdToRow.end(); ++i ) 
+        for( QMap<int,int>::iterator i = myIdToRow.begin(); i != myIdToRow.end(); ++i )
             if( i.value() > row )
                 --i.value();
         myIdToRow.remove( id );
index 7ff9ad4ffe95cfd0accfd6fba01586d7328512a3..c0c7bda054291132db254edd94102dd1df340efa 100644 (file)
@@ -53,7 +53,7 @@ TrackerDelegate :: sizeHint( const QStyleOptionViewItem& option, const TrackerIn
     Q_UNUSED( option );
 
     QPixmap favicon = info.st.getFavicon( );
-    
+
     const QString text = TrackerDelegate :: getText( info );
     QTextDocument textDoc;
     textDoc.setHtml( text );
index cc8e7a784dd8d91ae1bd6791f8c6a2e6117b7eff..1bef8398c336a04bd23757f3796720886b3eb5f4 100644 (file)
@@ -38,7 +38,7 @@ class TrackerDelegate: public QItemDelegate
         void setShowMore( bool b );
 
     protected:
-        QString getText( const TrackerInfo& ) const; 
+        QString getText( const TrackerInfo& ) const;
         QSize margin( const QStyle& style ) const;
         virtual QSize sizeHint( const QStyleOptionViewItem&, const TrackerInfo& ) const;
         void drawTracker( QPainter*, const QStyleOptionViewItem&, const TrackerInfo& ) const;
index 0d8e45b395abd1fc5dc4bae37fd8334cf4a9b9e5..0557cf3e747b5e8dc15caa6022f7334e2a5bc29d 100644 (file)
@@ -34,7 +34,7 @@ class Utils: public QObject
         // meh
         static void toStderr( const QString& qstr );
 
-        /// 
+        ///
         /// URLs
         ///
 
index 494e007760a1a1d7d40686126c8d1ebcda67e5f1..e846b60404b94a7ff5a1b8b1a5142aa74c853fe8 100644 (file)
@@ -137,7 +137,6 @@ removeURL( tr_benc * metainfo, const char * url )
             }
         }
     }
-        
 
     return changed;
 }
index 1906ce288ff1a5d8b484d560d51eceb20d06a700..9a71e8ca0f441f98f9e181bed1f761bc53f89f6e 100644 (file)
@@ -14,7 +14,7 @@
 #include <time.h>
 
 #define CURL_DISABLE_TYPECHECK /* otherwise -Wunreachable-code goes insane */
-#include <curl/curl.h> 
+#include <curl/curl.h>
 
 #include <event.h> /* struct evbuffer */
 
@@ -127,7 +127,7 @@ showInfo( const tr_info * inf )
     **/
 
     printf( "\nTRACKERS\n" );
-    for( i=0; i<(int)inf->trackerCount; ++i ) 
+    for( i=0; i<(int)inf->trackerCount; ++i )
     {
         if( prevTier != inf->trackers[i].tier )
         {