From 19a6f1f7ab63e82264e5bbb647bca3573cc673dc Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Mon, 6 Feb 2017 23:56:42 +0100 Subject: Replace tabs by spaces --- src/odr-padenc.cpp | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src') diff --git a/src/odr-padenc.cpp b/src/odr-padenc.cpp index 4a3fa9c..26d3b08 100644 --- a/src/odr-padenc.cpp +++ b/src/odr-padenc.cpp @@ -277,12 +277,12 @@ void MOTHeader::IncrementHeaderSize(size_t size) { } void MOTHeader::AddExtensionFixedSize(int pli, int param_id, const uint8_t* data_field, size_t data_field_len) { - AddParamHeader(pli, param_id); + AddParamHeader(pli, param_id); - for (size_t i = 0; i < data_field_len; i++) - data.push_back(data_field[i]); + for (size_t i = 0; i < data_field_len; i++) + data.push_back(data_field[i]); - IncrementHeaderSize(1 + data_field_len); + IncrementHeaderSize(1 + data_field_len); } void MOTHeader::AddExtensionVarSize(int param_id, const uint8_t* data_field, size_t data_field_len) { @@ -304,27 +304,27 @@ void MOTHeader::AddExtensionVarSize(int param_id, const uint8_t* data_field, siz } void MOTHeader::AddExtension(int param_id, const uint8_t* data_field, size_t data_field_len) { - int pli; - - switch(data_field_len) { - case 0: - pli = 0b00; - break; - case 1: - pli = 0b01; - break; - case 4: - pli = 0b10; - break; - default: - pli = 0b11; - break; - } - - if (pli == 0b11) - AddExtensionVarSize(param_id, data_field, data_field_len); - else - AddExtensionFixedSize(pli, param_id, data_field, data_field_len); + int pli; + + switch(data_field_len) { + case 0: + pli = 0b00; + break; + case 1: + pli = 0b01; + break; + case 4: + pli = 0b10; + break; + default: + pli = 0b11; + break; + } + + if (pli == 0b11) + AddExtensionVarSize(param_id, data_field, data_field_len); + else + AddExtensionFixedSize(pli, param_id, data_field, data_field_len); } -- cgit v1.2.3