Transceiver52M: Remove extra copy in receive drive path
Currently the code allocations a signalVector and then copies
into a radioVector. This is unnecessary because the latter is
a derived class making the first allocation unnecessary.
Modify the radioVector constructor to allow direct use in the
case above.
Signed-off-by: Thomas Tsou <tom@tsou.cc>
diff --git a/Transceiver52M/radioVector.cpp b/Transceiver52M/radioVector.cpp
index 8869821..c50cfa5 100644
--- a/Transceiver52M/radioVector.cpp
+++ b/Transceiver52M/radioVector.cpp
@@ -26,6 +26,11 @@
{
}
+radioVector::radioVector(size_t size, GSM::Time& wTime)
+ : signalVector(size), mTime(wTime)
+{
+}
+
GSM::Time radioVector::getTime() const
{
return mTime;