From 4c3eb7b11941f721f275604376881a5dae912f68 Mon Sep 17 00:00:00 2001 From: David Rowland Date: Thu, 30 May 2024 14:55:57 +0100 Subject: [PATCH] Fixed some warnings --- melatonin/internal/cached_shadows.h | 2 ++ melatonin/internal/implementations.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/melatonin/internal/cached_shadows.h b/melatonin/internal/cached_shadows.h index 6f6ea76..670567d 100644 --- a/melatonin/internal/cached_shadows.h +++ b/melatonin/internal/cached_shadows.h @@ -13,6 +13,8 @@ namespace melatonin::internal explicit CachedShadows (const std::vector& shadowParameters, bool force_inner = false); public: + virtual ~CachedShadows() = default; + // store a copy of the path to compare against for caching // public for testability, sorry not sorry // too lazy to break out ARGBComposite into its own class diff --git a/melatonin/internal/implementations.h b/melatonin/internal/implementations.h index 73f4f5a..067a357 100644 --- a/melatonin/internal/implementations.h +++ b/melatonin/internal/implementations.h @@ -72,7 +72,7 @@ namespace melatonin::internal // Don't use these directly, use melatonin::CachedBlur! namespace melatonin::blur { - static void singleChannel (juce::Image& img, size_t radius) + static inline void singleChannel (juce::Image& img, size_t radius) { #if MELATONIN_BLUR_VIMAGE if (internal::vImageSingleChannelAvailable()) @@ -86,7 +86,7 @@ namespace melatonin::blur #endif } - static void argb ([[maybe_unused]] juce::Image& srcImage, juce::Image& dstImage, size_t radius) + static inline void argb ([[maybe_unused]] juce::Image& srcImage, juce::Image& dstImage, size_t radius) { #if MELATONIN_BLUR_VIMAGE_MACOS14 if (internal::vImageARGBAvailable())