diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-06-04 14:59:37 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-06-04 14:59:48 -0700 |
commit | cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9 (patch) | |
tree | 030fa871567ccdcbc839325afc9cc533df2e981e /launcher/tasks/ConcurrentTask.h | |
parent | 7e0e1ec51dfbcd49204f8e8e7e82b72c9931db11 (diff) | |
download | PrismLauncher-cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9.tar.gz PrismLauncher-cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9.tar.bz2 PrismLauncher-cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9.zip |
chore: clean up after new compiler warnings
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/tasks/ConcurrentTask.h')
-rw-r--r-- | launcher/tasks/ConcurrentTask.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/tasks/ConcurrentTask.h b/launcher/tasks/ConcurrentTask.h index 6325fc9e..481ebf85 100644 --- a/launcher/tasks/ConcurrentTask.h +++ b/launcher/tasks/ConcurrentTask.h @@ -53,7 +53,7 @@ class ConcurrentTask : public Task { bool canAbort() const override { return true; } - inline auto isMultiStep() const -> bool override { return totalSize() > 1; }; + inline auto isMultiStep() const -> bool override { return totalSize() > 1; } auto getStepProgress() const -> TaskStepProgressList override; void addTask(Task::Ptr task); @@ -80,7 +80,7 @@ class ConcurrentTask : public Task { protected: // NOTE: This is not thread-safe. - [[nodiscard]] unsigned int totalSize() const { return m_queue.size() + m_doing.size() + m_done.size(); } + [[nodiscard]] unsigned int totalSize() const { return static_cast<unsigned int>(m_queue.size() + m_doing.size() + m_done.size()); } enum class Operation { ADDED, REMOVED, CHANGED }; void updateStepProgress(TaskStepProgress const& changed_progress, Operation); |