Changeset 14385


Ignore:
Timestamp:
Dec 14, 2014, 11:57:23 AM (8 years ago)
Author:
mikedld
Message:

Do not use void to denote argumentless functions in C++ code

Location:
trunk/qt
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/app.cc

    r14379 r14385  
    6262
    6363  const char*
    64   getUsage (void)
     64  getUsage ()
    6565  {
    6666    return "Usage:\n"
     
    6969
    7070  void
    71   showUsage (void)
     71  showUsage ()
    7272  {
    7373    tr_getopt_usage (MY_READABLE_NAME, getUsage (), opts);
  • trunk/qt/mainwin.h

    r14379 r14385  
    146146
    147147  private:
    148     QMenu * createOptionsMenu (void);
    149     QWidget * createStatusBar (void);
     148    QMenu * createOptionsMenu ();
     149    QWidget * createStatusBar ();
    150150    QWidget * myStatusBar;
    151151    QPushButton * myAltSpeedButton;
  • trunk/qt/make-dialog.cc

    r14380 r14385  
    355355    b->setText (myDestination);
    356356    connect (b, SIGNAL(clicked(bool)),
    357              this, SLOT(onDestinationClicked(void)));
     357             this, SLOT(onDestinationClicked()));
    358358    myDestinationButton = b;
    359359    hig->addRow (tr ("Sa&ve to:"), b);
     
    367367    myFolderButton->setStyleSheet (QString::fromUtf8 ("text-align: left; padding-left: 5; padding-right: 5"));
    368368    connect (myFolderButton, SIGNAL(clicked(bool)),
    369              this, SLOT(onFolderClicked(void)));
     369             this, SLOT(onFolderClicked()));
    370370    hig->addRow (myFolderRadio, myFolderButton);
    371371    enableBuddyWhenChecked (myFolderRadio, myFolderButton);
     
    382382    myFileButton->setStyleSheet (QString::fromUtf8 ("text-align: left; padding-left: 5; padding-right: 5"));
    383383    connect (myFileButton, SIGNAL(clicked(bool)),
    384              this, SLOT(onFileClicked(void)));
     384             this, SLOT(onFileClicked()));
    385385    hig->addRow (myFileRadio, myFileButton);
    386386    enableBuddyWhenChecked (myFileRadio, myFileButton);
  • trunk/qt/prefs-dialog.cc

    r14377 r14385  
    477477
    478478void
    479 PrefsDialog::onScriptClicked (void)
     479PrefsDialog::onScriptClicked ()
    480480{
    481481  const QString title = tr ("Select \"Torrent Done\" Script");
     
    488488
    489489void
    490 PrefsDialog::onIncompleteClicked (void)
     490PrefsDialog::onIncompleteClicked ()
    491491{
    492492  const QString title = tr ("Select Incomplete Directory");
     
    499499
    500500void
    501 PrefsDialog::onWatchClicked (void)
     501PrefsDialog::onWatchClicked ()
    502502{
    503503  const QString title = tr ("Select Watch Directory");
     
    510510
    511511void
    512 PrefsDialog::onDestinationClicked (void)
     512PrefsDialog::onDestinationClicked ()
    513513{
    514514  const QString title = tr ("Select Destination");
     
    573573    b->setIcon (folderPixmap);
    574574    b->setStyleSheet (QString::fromUtf8 ("text-align: left; padding-left: 5; padding-right: 5"));
    575     connect (b, SIGNAL(clicked(bool)), this, SLOT(onWatchClicked(void)));
     575    connect (b, SIGNAL(clicked(bool)), this, SLOT(onWatchClicked()));
    576576    hig->addRow (l, b);
    577577    enableBuddyWhenChecked (qobject_cast<QCheckBox*>(l), b);
     
    586586    b->setIcon (folderPixmap);
    587587    b->setStyleSheet (QString::fromUtf8 ("text-align: left; padding-left: 5; padding-right: 5"));
    588     connect (b, SIGNAL(clicked(bool)), this, SLOT(onDestinationClicked(void)));
     588    connect (b, SIGNAL(clicked(bool)), this, SLOT(onDestinationClicked()));
    589589    hig->addRow (tr ("Save to &Location:"), b);
    590590
     
    611611    b->setIcon (folderPixmap);
    612612    b->setStyleSheet (QString::fromUtf8 ("text-align: left; padding-left: 5; padding-right: 5"));
    613     connect (b, SIGNAL(clicked(bool)), this, SLOT(onIncompleteClicked(void)));
     613    connect (b, SIGNAL(clicked(bool)), this, SLOT(onIncompleteClicked()));
    614614    hig->addRow (myIncompleteCheckbox, b);
    615615    enableBuddyWhenChecked (qobject_cast<QCheckBox*>(l), b);
     
    619619    b->setIcon (filePixmap);
    620620    b->setStyleSheet (QString::fromUtf8 ("text-align: left; padding-left: 5; padding-right: 5"));
    621     connect (b, SIGNAL(clicked(bool)), this, SLOT(onScriptClicked(void)));
     621    connect (b, SIGNAL(clicked(bool)), this, SLOT(onScriptClicked()));
    622622    hig->addRow (myTorrentDoneScriptCheckbox, b);
    623623    enableBuddyWhenChecked (qobject_cast<QCheckBox*>(l), b);
Note: See TracChangeset for help on using the changeset viewer.