Skip to content

Commit

Permalink
Made select areas const.
Browse files Browse the repository at this point in the history
  • Loading branch information
hicklin committed Aug 22, 2024
1 parent 50da0c2 commit 8757886
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class RvcServiceAreaDelegate : public Delegate
// command support
bool IsSetSelectedAreasAllowed(MutableCharSpan & statusText) override;

bool IsValidSelectAreasSet(const Span<uint32_t> & selectedAreas, ServiceArea::SelectAreasStatus & areaStatus,
bool IsValidSelectAreasSet(const Span<const uint32_t> & selectedAreas, ServiceArea::SelectAreasStatus & areaStatus,
MutableCharSpan & statusText) override;

bool HandleSkipArea(uint32_t skippedArea, MutableCharSpan & skipStatusText) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ bool RvcServiceAreaDelegate::IsSetSelectedAreasAllowed(MutableCharSpan & statusT
return (mIsSetSelectedAreasAllowedDeviceInstance->*mIsSetSelectedAreasAllowedCallback)(statusText);
};

bool RvcServiceAreaDelegate::IsValidSelectAreasSet(const Span<uint32_t> & selectedAreas, SelectAreasStatus & areaStatus,
bool RvcServiceAreaDelegate::IsValidSelectAreasSet(const Span<const uint32_t> & selectedAreas, SelectAreasStatus & areaStatus,
MutableCharSpan & statusText)
{
if (selectedAreas.empty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Delegate
* @note If the SelectAreas command is allowed when the device is operating and the selected locations change to none, the
* device must stop.
*/
virtual bool IsValidSelectAreasSet(const Span<uint32_t> & selectedAreas, SelectAreasStatus & locationStatus,
virtual bool IsValidSelectAreasSet(const Span<const uint32_t> & selectedAreas, SelectAreasStatus & locationStatus,
MutableCharSpan & statusText) = 0;

/**
Expand Down

0 comments on commit 8757886

Please sign in to comment.