Cleanup: replace C-style casts with functional casts for numeric types

Some changes missed from f68cfd6bb0.
This commit is contained in:
2022-09-25 20:27:46 +10:00
parent d35a10134c
commit 21d77a417e
40 changed files with 162 additions and 162 deletions

View File

@@ -1583,10 +1583,10 @@ void UI_view2d_smooth_view(const bContext *C,
if (changed) {
sms.orig_cur = v2d->cur;
sms.time_allowed = (double)smooth_viewtx / 1000.0;
sms.time_allowed = double(smooth_viewtx) / 1000.0;
/* scale the time allowed the change in view */
sms.time_allowed *= (double)fac;
sms.time_allowed *= double(fac);
/* keep track of running timer! */
if (v2d->sms == nullptr) {