aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/jobs/basejob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp
index 7336fc47..13e65188 100644
--- a/lib/jobs/basejob.cpp
+++ b/lib/jobs/basejob.cpp
@@ -106,13 +106,13 @@ public:
int maxRetries = int(errorStrategy.size());
int retriesTaken = 0;
- const JobTimeoutConfig& getCurrentTimeoutConfig() const
+ [[nodiscard]] const JobTimeoutConfig& getCurrentTimeoutConfig() const
{
return errorStrategy[std::min(size_t(retriesTaken),
errorStrategy.size() - 1)];
}
- QString dumpRequest() const
+ [[nodiscard]] QString dumpRequest() const
{
// FIXME: use std::array {} when Apple stdlib gets deduction guides for it
static const auto verbs =