From 5e45beb6a385a6830aa1e3efa1093d7d0eb88ab8 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 21 Dec 2017 08:00:10 +0100 Subject: Improve Buffer initialisation in EtiReader --- src/EtiReader.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/EtiReader.cpp') diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp index 5f2be50..d84ed1f 100644 --- a/src/EtiReader.cpp +++ b/src/EtiReader.cpp @@ -207,8 +207,8 @@ int EtiReader::loadEtiData(const Buffer& dataIn) if (input_size < 128) { return dataIn.getLength() - input_size; } - PDEBUG("Writting 128 bytes of FIC channel data\n"); - Buffer fic = Buffer(128, in); + PDEBUG("Writing 128 bytes of FIC channel data\n"); + Buffer fic(128, in); myFicSource->loadFicData(fic); input_size -= 128; framesize -= 128; @@ -217,8 +217,8 @@ int EtiReader::loadEtiData(const Buffer& dataIn) if (input_size < 96) { return dataIn.getLength() - input_size; } - PDEBUG("Writting 96 bytes of FIC channel data\n"); - Buffer fic = Buffer(96, in); + PDEBUG("Writing 96 bytes of FIC channel data\n"); + Buffer fic(96, in); myFicSource->loadFicData(fic); input_size -= 96; framesize -= 96; @@ -230,7 +230,7 @@ int EtiReader::loadEtiData(const Buffer& dataIn) for (size_t i = 0; i < eti_stc.size(); ++i) { unsigned size = mySources[i]->framesize(); PDEBUG("Writting %i bytes of subchannel data\n", size); - Buffer subch = Buffer(size, in); + Buffer subch(size, in); mySources[i]->loadSubchannelData(subch); input_size -= size; framesize -= size; -- cgit v1.2.3