Code cleanups

This commit is contained in:
2023-09-15 15:33:22 +02:00
parent a9ae4c743f
commit b38ff35e09
3 changed files with 3 additions and 2 deletions

View File

@@ -68,6 +68,7 @@ namespace openVulkanoCpp::AR::Playback
m_nextFrame = frame;
m_frameConsumed = false;
//TODO try to keep original frame timing
// Trigger events
OnNewFrameAvailable();
OnNewFrame(frame);

View File

@@ -97,7 +97,7 @@ namespace openVulkanoCpp
static constexpr int64_t OctToInt(std::string_view string)
{
int64_t result = 0;
for(int i = string.length() - 1; i >= 0; i--)
for(int i = static_cast<int>(string.length()) - 1; i >= 0; i--)
{
char c = string[i];
if (c == 0) break;

View File

@@ -14,7 +14,7 @@ namespace openVulkanoCpp::Math
/**
* \brief A class that represents an axis aligned bounding box
*/
class AABB final : Range<Math::Vector3f>
class AABB final : public Range<Math::Vector3f>
{
public:
AABB() : Range(Math::Vector3f(INFINITY), Math::Vector3f(-INFINITY)) {}