Skip to content

Commit

Permalink
Use nodiscard in TestingALM
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jul 25, 2023
1 parent de4ae7c commit 74bdbb4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/activitylistmodeltestutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,15 @@ class TestingALM : public OCC::ActivityListModel
public:
TestingALM() = default;

int maxActivities() const { return _maxActivities; };
[[nodiscard]] int maxActivities() const
{
return _maxActivities;
};
// Need to include the dummy "show more in activities app" activity
int maxPossibleActivities() const { return maxActivities() + 1; }
[[nodiscard]] int maxPossibleActivities() const
{
return maxActivities() + 1;
}

public slots:
void startFetchJob() override;
Expand Down

0 comments on commit 74bdbb4

Please sign in to comment.