Skip to content

Commit

Permalink
Fix SonarQube issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Oct 31, 2023
1 parent f2b829f commit d7a0f19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/devices/scsihd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

using namespace scsi_command_util;

SCSIHD::SCSIHD(int lun, bool removable, scsi_defs::scsi_level level, const unordered_set<uint32_t> sector_sizes)
SCSIHD::SCSIHD(int lun, bool removable, scsi_defs::scsi_level level, const unordered_set<uint32_t>& sector_sizes)
: Disk(removable ? SCRM : SCHD, lun, sector_sizes), scsi_level(level)
{
SetProtectable(true);
Expand Down
2 changes: 1 addition & 1 deletion cpp/devices/scsihd.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SCSIHD : public Disk

public:

SCSIHD(int, bool, scsi_defs::scsi_level, const unordered_set<uint32_t> = { 512, 1024, 2048, 4096 });
SCSIHD(int, bool, scsi_defs::scsi_level, const unordered_set<uint32_t>& = { 512, 1024, 2048, 4096 });
~SCSIHD() override = default;

void FinalizeSetup(off_t);
Expand Down

0 comments on commit d7a0f19

Please sign in to comment.