diff options
author | Stefan Pöschel <github@basicmaster.de> | 2018-12-03 00:06:23 +0100 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2018-12-03 00:06:23 +0100 |
commit | 295c47a090c16699ec22dd857b828950b49dac6a (patch) | |
tree | ea2b7afe27c849699d7bb66ebcabfcf6bbab0e43 /src/dls.cpp | |
parent | 0fbd55ee9144e0a8fe66009355d77aa989e5bad1 (diff) | |
download | ODR-PadEnc-295c47a090c16699ec22dd857b828950b49dac6a.tar.gz ODR-PadEnc-295c47a090c16699ec22dd857b828950b49dac6a.tar.bz2 ODR-PadEnc-295c47a090c16699ec22dd857b828950b49dac6a.zip |
Replace push with emplace where possible
Diffstat (limited to 'src/dls.cpp')
-rw-r--r-- | src/dls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dls.cpp b/src/dls.cpp index 74b1131..06cf8a9 100644 --- a/src/dls.cpp +++ b/src/dls.cpp @@ -178,7 +178,7 @@ void DLSEncoder::parse_dl_params(std::ifstream &dls_fstream, DL_STATE &dl_state) if (parse_dl_param_int_dl_plus_tag("content_type", params[0], content_type) & parse_dl_param_int_dl_plus_tag("start_marker", params[1], start_marker) & parse_dl_param_int_dl_plus_tag("length_marker", params[2], length_marker)) - dl_state.dl_plus_tags.push_back(DL_PLUS_TAG(content_type, start_marker, length_marker)); + dl_state.dl_plus_tags.emplace_back(content_type, start_marker, length_marker); continue; } @@ -244,7 +244,7 @@ void DLSEncoder::encodeLabel(const std::string& dls_file, const DL_PARAMS& dl_pa // if DL Plus enabled, but no DL Plus tags were added, add the required DUMMY tag if (dl_state.dl_plus_enabled && dl_state.dl_plus_tags.empty()) - dl_state.dl_plus_tags.push_back(DL_PLUS_TAG()); + dl_state.dl_plus_tags.emplace_back(); // toggle the toggle bit only on new DL state |