Skip to content

Commit

Permalink
qtgui: Matrix Sink - use QVector initializer supported by Qt 5.12
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Long <willcode4@gmail.com>
  • Loading branch information
willcode committed Sep 11, 2023
1 parent b32db19 commit e1bf731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gr-qtgui/lib/matrix_sink_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ int matrix_sink_impl::work(int noutput_items,
auto in = static_cast<const input_type*>(input_items[0]);

for (int k = 0; k < noutput_items; k++) {
std::vector<input_type> a(in + k * d_vlen, in + (k + 1) * d_vlen);
QVector<double> qvec(a.begin(), a.end());
QVector<double> qvec(d_vlen);
std::copy(in + k * d_vlen, in + (k + 1) * d_vlen, qvec.begin());
emit d_signal->data_ready(qvec);
}

Expand Down

0 comments on commit e1bf731

Please sign in to comment.