clang-tidy: Apply modernize-redundant-void-arg everywhere (#6446)

This commit is contained in:
Levin Oehlmann
2022-06-23 21:27:23 +02:00
committed by GitHub
parent 420769a32d
commit 773310384b
38 changed files with 142 additions and 142 deletions

View File

@@ -67,7 +67,7 @@ long wavewords, wavemode=0;
float mem_t=1.0f, mem_o=1.0f, mem_n=1.0f, mem_b=1.0f, mem_tune=1.0f, mem_time=1.0f;
int DrumSynth::LongestEnv(void)
int DrumSynth::LongestEnv()
{
long e, eon, p;
float l=0.f;
@@ -86,7 +86,7 @@ int DrumSynth::LongestEnv(void)
}
float DrumSynth::LoudestEnv(void)
float DrumSynth::LoudestEnv()
{
float loudest=0.f;
int i=0;

View File

@@ -53,8 +53,8 @@ PeakController::PeakController( Model * _parent,
setSampleExact( true );
if( m_peakEffect )
{
connect( m_peakEffect, SIGNAL( destroyed( ) ),
this, SLOT( handleDestroyedEffect( ) ) );
connect( m_peakEffect, SIGNAL( destroyed() ),
this, SLOT( handleDestroyedEffect() ) );
}
connect( Engine::audioEngine(), SIGNAL( sampleRateChanged() ), this, SLOT( updateCoeffs() ) );
connect( m_peakEffect->attackModel(), SIGNAL( dataChanged() ),
@@ -127,7 +127,7 @@ void PeakController::updateCoeffs()
}
void PeakController::handleDestroyedEffect( )
void PeakController::handleDestroyedEffect()
{
// possible race condition...
//printf("disconnecting effect\n");

View File

@@ -126,7 +126,7 @@ AudioSndio::~AudioSndio()
}
void AudioSndio::startProcessing( void )
void AudioSndio::startProcessing()
{
if( !isRunning() )
{
@@ -135,13 +135,13 @@ void AudioSndio::startProcessing( void )
}
void AudioSndio::stopProcessing( void )
void AudioSndio::stopProcessing()
{
stopProcessingThread( this );
}
void AudioSndio::applyQualitySettings( void )
void AudioSndio::applyQualitySettings()
{
if( hqAudio() )
{
@@ -154,7 +154,7 @@ void AudioSndio::applyQualitySettings( void )
}
void AudioSndio::run( void )
void AudioSndio::run()
{
surroundSampleFrame * temp = new surroundSampleFrame[audioEngine()->framesPerPeriod()];
int_sample_t * outbuf = new int_sample_t[audioEngine()->framesPerPeriod() * channels()];
@@ -210,7 +210,7 @@ AudioSndio::setupWidget::~setupWidget()
}
void AudioSndio::setupWidget::saveSettings( void )
void AudioSndio::setupWidget::saveSettings()
{
ConfigManager::inst()->setValue( "audiosndio", "device",
m_device->text() );

View File

@@ -38,7 +38,7 @@ namespace lmms
{
MidiSndio::MidiSndio( void ) :
MidiSndio::MidiSndio() :
MidiClientRaw(),
m_quit( false )
{
@@ -74,7 +74,7 @@ MidiSndio::~MidiSndio()
}
QString MidiSndio::probeDevice( void )
QString MidiSndio::probeDevice()
{
QString dev = ConfigManager::inst()->value( "MidiSndio", "device" );
@@ -88,7 +88,7 @@ void MidiSndio::sendByte( const unsigned char c )
}
void MidiSndio::run( void )
void MidiSndio::run()
{
struct pollfd pfd;
nfds_t nfds;

View File

@@ -42,7 +42,7 @@ namespace lmms::gui
{
ControllerRackView::ControllerRackView( ) :
ControllerRackView::ControllerRackView() :
QWidget(),
m_nextIndex(0)
{

View File

@@ -201,7 +201,7 @@ bool FileBrowser::filterItems( const QString & filter, QTreeWidgetItem * item )
}
void FileBrowser::reloadTree( void )
void FileBrowser::reloadTree()
{
QList<QString> expandedDirs = m_fileBrowserTreeWidget->expandedDirs();
const QString text = m_filterEdit->text();
@@ -959,7 +959,7 @@ Directory::Directory(const QString & filename, const QString & path,
void Directory::initPixmaps( void )
void Directory::initPixmaps()
{
if( s_folderPixmap == nullptr )
{
@@ -983,7 +983,7 @@ void Directory::initPixmaps( void )
void Directory::update( void )
void Directory::update()
{
if( !isExpanded() )
{
@@ -1146,7 +1146,7 @@ FileItem::FileItem(const QString & name, const QString & path ) :
void FileItem::initPixmaps( void )
void FileItem::initPixmaps()
{
if( s_projectFilePixmap == nullptr )
{
@@ -1221,7 +1221,7 @@ void FileItem::initPixmaps( void )
void FileItem::determineFileType( void )
void FileItem::determineFileType()
{
m_handling = NotSupported;
@@ -1289,7 +1289,7 @@ void FileItem::determineFileType( void )
QString FileItem::extension( void )
QString FileItem::extension()
{
return extension( fullName() );
}

View File

@@ -143,7 +143,7 @@ LmmsStyle::LmmsStyle() :
QPalette LmmsStyle::standardPalette( void ) const
QPalette LmmsStyle::standardPalette() const
{
if( s_palette != nullptr) { return * s_palette; }

View File

@@ -66,7 +66,7 @@ void InstrumentView::setModel( Model * _model, bool )
InstrumentTrackWindow * InstrumentView::instrumentTrackWindow( void )
InstrumentTrackWindow * InstrumentView::instrumentTrackWindow()
{
return( dynamic_cast<InstrumentTrackWindow *>(
parentWidget()->parentWidget() ) );

View File

@@ -55,8 +55,8 @@ Graph::Graph( QWidget * _parent, graphStyle _style, int _width,
QObject::connect( gModel, SIGNAL( samplesChanged( int, int ) ),
this, SLOT( updateGraph( int, int ) ) );
QObject::connect( gModel, SIGNAL( lengthChanged( ) ),
this, SLOT( updateGraph( ) ) );
QObject::connect( gModel, SIGNAL( lengthChanged() ),
this, SLOT( updateGraph() ) );
}
void Graph::setForeground( const QPixmap &_pixmap )
@@ -438,8 +438,8 @@ void Graph::modelChanged()
QObject::connect( gModel, SIGNAL( samplesChanged( int, int ) ),
this, SLOT( updateGraph( int, int ) ) );
QObject::connect( gModel, SIGNAL( lengthChanged( ) ),
this, SLOT( updateGraph( ) ) );
QObject::connect( gModel, SIGNAL( lengthChanged() ),
this, SLOT( updateGraph() ) );
}