Skip to content

Commit

Permalink
Fix Sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Dec 10, 2024
1 parent 15e82a6 commit 6e85484
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cpp/base/primary_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ void PrimaryDevice::Inquiry()
DataInPhase(allocation_length);
}

void PrimaryDevice::ReportLuns()
void PrimaryDevice::ReportLuns() const
{
// Only SELECT REPORT mode 0 is supported
if (GetCdbByte(2)) {
Expand Down Expand Up @@ -244,7 +244,7 @@ void PrimaryDevice::RequestSense()
DataInPhase(length);
}

void PrimaryDevice::SendDiagnostic()
void PrimaryDevice::SendDiagnostic() const
{
// Do not support parameter list
if (GetCdbByte(3) || GetCdbByte(4)) {
Expand Down
4 changes: 2 additions & 2 deletions cpp/base/primary_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class PrimaryDevice : public Device

virtual void Inquiry();
virtual void RequestSense();
void SendDiagnostic();
void SendDiagnostic() const;
void ReserveUnit();
void ReleaseUnit();

Expand Down Expand Up @@ -187,7 +187,7 @@ class PrimaryDevice : public Device
void SetController(AbstractController*);

void TestUnitReady();
void ReportLuns();
void ReportLuns() const;

vector<byte> HandleRequestSense() const;

Expand Down
2 changes: 1 addition & 1 deletion cpp/devices/tape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void Tape::Erase6()
StatusPhase();
}

void Tape::ReadBlockLimits()
void Tape::ReadBlockLimits() const
{
SetInt32(GetController()->GetBuffer(), 0, 0xffffff);
SetInt16(GetController()->GetBuffer(), 4, 4);
Expand Down
2 changes: 1 addition & 1 deletion cpp/devices/tape.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Tape : public StorageDevice
void Read6();
void Write6();
void Erase6();
void ReadBlockLimits();
void ReadBlockLimits() const;
void Rewind();
void Space6();
void WriteFilemarks(bool);
Expand Down

0 comments on commit 6e85484

Please sign in to comment.