Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused const qualifiers #701

Merged
merged 1 commit into from
Jun 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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