From 15c055beb724c2d9e9106cd5e5f7ec887fa28d2a Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 11 Aug 2025 01:43:20 +0300 Subject: [PATCH] Removes virtual destructor from Camera Removes the virtual destructor from the Camera class as it is not required, as the class does not act as a base class. This simplifies the class definition and avoids potential vtable overhead. --- include/omath/projection/camera.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/projection/camera.hpp b/include/omath/projection/camera.hpp index 816d47f..79eb191 100644 --- a/include/omath/projection/camera.hpp +++ b/include/omath/projection/camera.hpp @@ -30,7 +30,7 @@ namespace omath::projection class Camera final { public: - virtual ~Camera() = default; + ~Camera() = default; Camera(const Vector3& position, const ViewAnglesType& view_angles, const ViewPort& view_port, const FieldOfView& fov, const float near, const float far) noexcept : m_view_port(view_port), m_field_of_view(fov), m_far_plane_distance(far), m_near_plane_distance(near),