Skip to content

Commit

Permalink
Add constructor list to all the constructors in SmSignalBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
watney committed Sep 5, 2024
1 parent 132d4b4 commit fa3db99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Fw/Sm/SmSignalBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Fw {

SmSignalBuffer::SmSignalBuffer(const U8 *args, NATIVE_UINT_TYPE size) {
SmSignalBuffer::SmSignalBuffer(const U8 *args, NATIVE_UINT_TYPE size) : m_bufferData{} {
SerializeStatus stat = SerializeBufferBase::setBuff(args,size);
FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat));
}
Expand All @@ -14,7 +14,9 @@ namespace Fw {
SmSignalBuffer::~SmSignalBuffer() {
}

SmSignalBuffer::SmSignalBuffer(const SmSignalBuffer& other) : Fw::SerializeBufferBase() {
SmSignalBuffer::SmSignalBuffer(const SmSignalBuffer& other) : Fw::SerializeBufferBase(),
m_bufferData{}
{
SerializeStatus stat = SerializeBufferBase::setBuff(other.m_bufferData,other.getBuffLength());
FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat));
}
Expand Down

0 comments on commit fa3db99

Please sign in to comment.