From 74bdbb4aa13bf92bff05e82b3a4605d6a224f9f7 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 25 Jul 2023 08:42:09 +0800 Subject: [PATCH] Use nodiscard in TestingALM Signed-off-by: Claudio Cambra --- test/activitylistmodeltestutils.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/activitylistmodeltestutils.h b/test/activitylistmodeltestutils.h index 815611604947..55310f197b92 100644 --- a/test/activitylistmodeltestutils.h +++ b/test/activitylistmodeltestutils.h @@ -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;