diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-17 17:41:00 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-22 15:05:58 +0200 |
commit | c6cb3bbc35153a9635d69eddab0d252f7441b854 (patch) | |
tree | f9ab04c336fa6f228ce0c7b90c3722955a1aa53f /gnuradio-runtime/lib/prefs.cc | |
parent | bcf35e64b5662f716e0de59e95fdd9ffb02238a7 (diff) |
Use emplace_back(params) instead of push_back(type(params))
This is C++11: you can convert
std::vector<complextype> vec;
vec.push_back(complextype(foo, bar, baz));
by
std::vector<complextype> vec;
vec.emplace_back(foo, bar, baz);
which saves one unnecessary copy.
This mostly happened in rpc code.
The automated clang-tidy check failed miserably, so most of this was
done by hand.
Diffstat (limited to 'gnuradio-runtime/lib/prefs.cc')
0 files changed, 0 insertions, 0 deletions