From 127656b44c4d4257e78aab9a7f5f23cf46c7a0e4 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Mon, 31 Jul 2023 11:41:47 +0200 Subject: [PATCH] fix: pragma once --- ios/Skia Render Layer/SkImageHelpers.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ios/Skia Render Layer/SkImageHelpers.h b/ios/Skia Render Layer/SkImageHelpers.h index 7eb38a1..c958eba 100644 --- a/ios/Skia Render Layer/SkImageHelpers.h +++ b/ios/Skia Render Layer/SkImageHelpers.h @@ -6,8 +6,7 @@ // Copyright © 2022 mrousavy. All rights reserved. // -#ifndef SkImageHelpers_h -#define SkImageHelpers_h +#pragma once #import #import @@ -22,7 +21,7 @@ class SkImageHelpers { public: SkImageHelpers() = delete; - + public: /** Convert a CMSampleBuffer to an SkImage. Format has to be RGB. @@ -37,9 +36,7 @@ public: The return value should be passed as a sourceRect to a canvas->draw...Rect(..) function, destinationRect should stay the same. */ static SkRect createCenterCropRect(SkRect source, SkRect destination); - + private: static SkRect inscribe(SkSize size, SkRect rect); }; - -#endif /* SkImageHelpers_h */