source/sink: don't return void in void functions

wip-signat
Dimitri Stolnikov 9 years ago
parent cc083037fe
commit 1adf936c94
  1. 4
      lib/sink_impl.cc
  2. 4
      lib/source_impl.cc

@ -503,7 +503,7 @@ void sink_impl::set_dc_offset( const std::complex<double> &offset, size_t chan )
BOOST_FOREACH( sink_iface *dev, _devs )
for (size_t dev_chan = 0; dev_chan < dev->get_num_channels(); dev_chan++)
if ( chan == channel++ )
return dev->set_dc_offset( offset, dev_chan );
dev->set_dc_offset( offset, dev_chan );
}
void sink_impl::set_iq_balance( const std::complex<double> &balance, size_t chan )
@ -512,7 +512,7 @@ void sink_impl::set_iq_balance( const std::complex<double> &balance, size_t chan
BOOST_FOREACH( sink_iface *dev, _devs )
for (size_t dev_chan = 0; dev_chan < dev->get_num_channels(); dev_chan++)
if ( chan == channel++ )
return dev->set_iq_balance( balance, dev_chan );
dev->set_iq_balance( balance, dev_chan );
}
double sink_impl::set_bandwidth( double bandwidth, size_t chan )

@ -684,7 +684,7 @@ void source_impl::set_dc_offset_mode( int mode, size_t chan )
BOOST_FOREACH( source_iface *dev, _devs )
for (size_t dev_chan = 0; dev_chan < dev->get_num_channels(); dev_chan++)
if ( chan == channel++ )
return dev->set_dc_offset_mode( mode, dev_chan );
dev->set_dc_offset_mode( mode, dev_chan );
}
void source_impl::set_dc_offset( const std::complex<double> &offset, size_t chan )
@ -693,7 +693,7 @@ void source_impl::set_dc_offset( const std::complex<double> &offset, size_t chan
BOOST_FOREACH( source_iface *dev, _devs )
for (size_t dev_chan = 0; dev_chan < dev->get_num_channels(); dev_chan++)
if ( chan == channel++ )
return dev->set_dc_offset( offset, dev_chan );
dev->set_dc_offset( offset, dev_chan );
}
void source_impl::set_iq_balance_mode( int mode, size_t chan )

Loading…
Cancel
Save