tidy(blobmaterial&circularindicatormanager): warning fixes, readability and modernize headers.
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 9s
Python / lint-format (pull_request) Successful in 17s
Python / test (pull_request) Successful in 48s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m41s
C++ / build (pull_request) Successful in 2m29s

This commit is contained in:
2026-06-30 03:08:32 +02:00
parent 1e31e14de8
commit 944694966b
2 changed files with 4 additions and 7 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
#include "blobmaterial.hpp"
#include <math.h>
#include <cmath>
#include <cstring>
static_assert(
@@ -89,17 +89,15 @@ void CircularIndicatorManager::setProgress(qreal progress) {
qreal CircularIndicatorManager::duration() const {
if (m_type == IndeterminateAnimationType::Advance) {
return advance::TOTAL_DURATION_IN_MS;
} else {
return retreat::TOTAL_DURATION_IN_MS;
}
return retreat::TOTAL_DURATION_IN_MS;
}
qreal CircularIndicatorManager::completeEndDuration() const {
if (m_type == IndeterminateAnimationType::Advance) {
return advance::DURATION_TO_COMPLETE_END_IN_MS;
} else {
return retreat::DURATION_TO_COMPLETE_END_IN_MS;
}
} return retreat::DURATION_TO_COMPLETE_END_IN_MS;
}
CircularIndicatorManager::IndeterminateAnimationType