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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.