From b0c662591d722683ec925b1c55684013a5fc7cf7 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 22 Feb 2014 20:54:47 +0100 Subject: [PATCH] ZynAddSubFX: less line breaks / coding style --- plugins/zynaddsubfx/ZynAddSubFx.cpp | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/plugins/zynaddsubfx/ZynAddSubFx.cpp b/plugins/zynaddsubfx/ZynAddSubFx.cpp index 2127c596e..02808a63b 100644 --- a/plugins/zynaddsubfx/ZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/ZynAddSubFx.cpp @@ -186,8 +186,7 @@ void ZynAddSubFxInstrument::saveSettings( QDomDocument & _doc, if( m_remotePlugin ) { m_remotePlugin->lock(); - m_remotePlugin->sendMessage( - RemotePlugin::message( IdSaveSettingsToFile ).addString( fn ) ); + m_remotePlugin->sendMessage( RemotePlugin::message( IdSaveSettingsToFile ).addString( fn ) ); m_remotePlugin->waitForMessage( IdSaveSettingsToFile ); m_remotePlugin->unlock(); } @@ -241,15 +240,12 @@ void ZynAddSubFxInstrument::loadSettings( const QDomElement & _this ) tf.write( a ); tf.flush(); - const std::string fn = QSTR_TO_STDSTR( - QDir::toNativeSeparators( tf.fileName() ) ); + const std::string fn = QSTR_TO_STDSTR( QDir::toNativeSeparators( tf.fileName() ) ); m_pluginMutex.lock(); if( m_remotePlugin ) { m_remotePlugin->lock(); - m_remotePlugin->sendMessage( - RemotePlugin::message( IdLoadSettingsFromFile ). - addString( fn ) ); + m_remotePlugin->sendMessage( RemotePlugin::message( IdLoadSettingsFromFile ).addString( fn ) ); m_remotePlugin->waitForMessage( IdLoadSettingsFromFile ); m_remotePlugin->unlock(); } @@ -260,8 +256,7 @@ void ZynAddSubFxInstrument::loadSettings( const QDomElement & _this ) m_pluginMutex.unlock(); m_modifiedControllers.clear(); - foreach( const QString & c, - _this.attribute( "modifiedcontrollers" ).split( ',' ) ) + foreach( const QString & c, _this.attribute( "modifiedcontrollers" ).split( ',' ) ) { if( !c.isEmpty() ) { @@ -293,8 +288,7 @@ void ZynAddSubFxInstrument::loadFile( const QString & _file ) if( m_remotePlugin ) { m_remotePlugin->lock(); - m_remotePlugin->sendMessage( - RemotePlugin::message( IdLoadPresetFile ).addString( fn ) ); + m_remotePlugin->sendMessage( RemotePlugin::message( IdLoadPresetFile ).addString( fn ) ); m_remotePlugin->waitForMessage( IdLoadPresetFile ); m_remotePlugin->unlock(); } @@ -305,8 +299,7 @@ void ZynAddSubFxInstrument::loadFile( const QString & _file ) m_pluginMutex.unlock(); } - instrumentTrack()->setName( QFileInfo( _file ).baseName(). - replace( QRegExp( "^[0-9]{4}-" ), QString() ) ); + instrumentTrack()->setName( QFileInfo( _file ).baseName().replace( QRegExp( "^[0-9]{4}-" ), QString() ) ); m_modifiedControllers.clear(); @@ -336,8 +329,7 @@ void ZynAddSubFxInstrument::play( sampleFrame * _buf ) m_plugin->processAudio( _buf ); } m_pluginMutex.unlock(); - instrumentTrack()->processAudioBuffer( _buf, - engine::mixer()->framesPerPeriod(), NULL ); + instrumentTrack()->processAudioBuffer( _buf, engine::mixer()->framesPerPeriod(), NULL ); }