Skip to content

Commit

Permalink
Remove unused const qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Anderson authored and LeStarch committed Jun 14, 2021
1 parent db086fd commit 5e818e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions Fw/FilePacket/PathName.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ======================================================================
// ======================================================================
// \title PathName.cpp
// \author bocchino
// \brief cpp file for FilePacket::PathName
Expand All @@ -7,8 +7,8 @@
// Copyright 2009-2016, by the California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government Sponsorship
// acknowledged.
//
// ======================================================================
//
// ======================================================================

#include <string.h>

Expand All @@ -32,11 +32,11 @@ namespace Fw {
}

SerializeStatus FilePacket::PathName ::
fromSerialBuffer(SerialBuffer& serialBuffer)
fromSerialBuffer(SerialBuffer& serialBuffer)
{

{
const SerializeStatus status =
const SerializeStatus status =
serialBuffer.deserialize(this->length);
if (status != FW_SERIALIZE_OK)
return status;
Expand Down Expand Up @@ -69,7 +69,7 @@ namespace Fw {

{
const SerializeStatus status = serialBuffer.pushBytes(
reinterpret_cast<const U8 *const>(this->value),
reinterpret_cast<const U8 *>(this->value),
this->length
);
if (status != FW_SERIALIZE_OK)
Expand Down
16 changes: 8 additions & 8 deletions Fw/SerializableFile/SerializableFile.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// ======================================================================
// ======================================================================
// \title SerializableFile.cpp
// \author dinkel
// \brief cpp file for SerializableFile
// \author dinkel
// \brief cpp file for SerializableFile
//
// \copyright
// Copyright 2009-2016, by the California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government Sponsorship
// acknowledged.
//
// ======================================================================
//
// ======================================================================

#include "Fw/SerializableFile/SerializableFile.hpp"
#include "Fw/Types/Assert.hpp"
Expand All @@ -20,7 +20,7 @@ namespace Fw {
allocator(allocator),
recoverable(false), // for compiler; not used
actualSize(maxSerializedSize),
buffer( (U8 *const) this->allocator->allocate(0, actualSize, recoverable), actualSize)
buffer( (U8 *) this->allocator->allocate(0, actualSize, recoverable), actualSize)
{
// assert if allocator returns smaller size
FW_ASSERT(maxSerializedSize == actualSize,maxSerializedSize,actualSize);
Expand All @@ -30,7 +30,7 @@ namespace Fw {
SerializableFile::~SerializableFile() {
this->allocator->deallocate(0, this->buffer.getBuffAddr());
}

SerializableFile::Status SerializableFile::load(const char* fileName, Serializable& serializable) {
Os::File file;
Os::File::Status status;
Expand Down Expand Up @@ -76,7 +76,7 @@ namespace Fw {
NATIVE_INT_TYPE size = length;
status = file.write(this->buffer.getBuffAddr(), length);
if( (Os::File::OP_OK != status) ||
(length != size) )
(length != size) )
{
file.close();
return FILE_WRITE_ERROR;
Expand Down

0 comments on commit 5e818e1

Please sign in to comment.