Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-09-25 11:30:50 +0300
committerCampbell Barton <campbell@blender.org>2022-09-25 11:31:10 +0300
commitc7b247a118e302a3afc6473797e53b6af28b69e2 (patch)
treed11149a165bfd8f3b3b791f24547499f041b133b /source/blender/compositor/realtime_compositor/intern/context.cc
parent891949cbb47143420f4324cb60efc05ef5d70b39 (diff)
Cleanup: replace static_casts with functional casts for numeric types
Diffstat (limited to 'source/blender/compositor/realtime_compositor/intern/context.cc')
-rw-r--r--source/blender/compositor/realtime_compositor/intern/context.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/compositor/realtime_compositor/intern/context.cc b/source/blender/compositor/realtime_compositor/intern/context.cc
index 64ac29af3d1..924398f6747 100644
--- a/source/blender/compositor/realtime_compositor/intern/context.cc
+++ b/source/blender/compositor/realtime_compositor/intern/context.cc
@@ -17,9 +17,8 @@ int Context::get_frame_number() const
float Context::get_time() const
{
- const float frame_number = static_cast<float>(get_frame_number());
- const float frame_rate = static_cast<float>(get_scene()->r.frs_sec) /
- static_cast<float>(get_scene()->r.frs_sec_base);
+ const float frame_number = float(get_frame_number());
+ const float frame_rate = float(get_scene()->r.frs_sec) / float(get_scene()->r.frs_sec_base);
return frame_number / frame_rate;
}