diff options
author | Tom Rondeau | 2012-06-07 16:43:10 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-06-07 16:43:10 -0400 |
commit | 9dc190127f3cc6f4688feaac514a0b887c531740 (patch) | |
tree | b64a6a91c0efbdb6dc4608920c4bf3d661fc6a30 /gr-digital | |
parent | f2ab263b6fc9c24adc88fb55f2c210dd88e9345a (diff) | |
download | gnuradio-9dc190127f3cc6f4688feaac514a0b887c531740.tar.gz gnuradio-9dc190127f3cc6f4688feaac514a0b887c531740.tar.bz2 gnuradio-9dc190127f3cc6f4688feaac514a0b887c531740.zip |
Some really minor nits.
Diffstat (limited to 'gr-digital')
-rw-r--r-- | gr-digital/lib/digital_ofdm_insert_preamble.cc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gr-digital/lib/digital_ofdm_insert_preamble.cc b/gr-digital/lib/digital_ofdm_insert_preamble.cc index d94425f31..e0449b50b 100644 --- a/gr-digital/lib/digital_ofdm_insert_preamble.cc +++ b/gr-digital/lib/digital_ofdm_insert_preamble.cc @@ -54,8 +54,8 @@ digital_ofdm_insert_preamble::digital_ofdm_insert_preamble d_pending_flag(0) { // sanity check preamble symbols - for (size_t i = 0; i < d_preamble.size(); i++){ - if (d_preamble[i].size() != (size_t) d_fft_length) + for(size_t i = 0; i < d_preamble.size(); i++) { + if(d_preamble[i].size() != (size_t) d_fft_length) throw std::invalid_argument("digital_ofdm_insert_preamble: invalid length for preamble symbol"); } @@ -67,20 +67,21 @@ digital_ofdm_insert_preamble::~digital_ofdm_insert_preamble() { } -void digital_ofdm_insert_preamble::forecast (int noutput_items, gr_vector_int &ninput_items_required){ - ninput_items_required[0] = noutput_items; +void digital_ofdm_insert_preamble::forecast (int noutput_items, gr_vector_int &ninput_items_required) +{ + ninput_items_required[0] = noutput_items; } int -digital_ofdm_insert_preamble::general_work (int noutput_items, - gr_vector_int &ninput_items_v, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items) +digital_ofdm_insert_preamble::general_work(int noutput_items, + gr_vector_int &ninput_items_v, + gr_vector_const_void_star &input_items, + gr_vector_void_star &output_items) { int ninput_items = ninput_items_v.size()==2?std::min(ninput_items_v[0], ninput_items_v[1]):ninput_items_v[0]; const gr_complex *in_sym = (const gr_complex *) input_items[0]; const unsigned char *in_flag = 0; - if (input_items.size() == 2) + if (input_items.size() == 2) in_flag = (const unsigned char *) input_items[1]; gr_complex *out_sym = (gr_complex *) output_items[0]; |